NetworkList.toArray() method
The stored networks as CIDR records.
Signature:
toArray(canonical?: boolean): string[];
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
canonical |
boolean |
(Optional) for IPv6, render the expanded form rather than the compressed one |
Returns:
string[]
CIDR records covering exactly the same addresses as this list.
Default Value
canonical defaults to false
Remarks
Not necessarily the records you constructed with. Each stored range is re-expressed as its minimal cover, so duplicates are gone and a range that does not align to one prefix comes back as several records. The addresses covered are identical; the record list need not be.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.