Function safeKeyIterator
- safeKeyIterator(
data: object,
options?: { arrayIndex?: boolean; hasOwnOnly?: boolean },
): IterableIterator<string> Parameters
- data: object
An object to traverse for accessor keys.
Optionaloptions: { arrayIndex?: boolean; hasOwnOnly?: boolean }Options.
OptionalarrayIndex?: booleanSet to
falseto exclude safe keys for array indexing; default:true.OptionalhasOwnOnly?: booleanSet to
falseto include enumerable prototype properties; default:true.
Returns IterableIterator<string>
Safe key iterator.
- data: object
Returns an iterator of safe keys useful with safeAccess and safeSet by traversing the given object.
Note: Keys are only generated for JSON objects; Map and Set are not indexed.