Object traversing and searching.
THE CODE IN THIS REPOSITORY HAS BEEN DELETED. ATTEMPTING TO IMPORT THIS LIBRARY WILL RESULT IN AN ERROR.
This library has been removed due to better alternatives generally being available. See below.
- traverseObjectPath: Use json pointer OR dot-object. See "getObjectValue".
- setObjectValue:
dot.str(path, value, obj)
※ dot-object - getObjectValue:
dot.pick(path, obj)
※ pick-a-value-using-dot-notation - populateObjectWithTestData: schema to defaults: ajv validate adds defaultsajv assigning-defaults. Also json-schema-faker. Object to schema: to-json-schema
- deepCopyObject: rfdc "deep copy" search on npm For JSON serializable objects:
JSON.parse(JSON.stringify(obj, null, 2))
- getDataByPathLevel: Calculate via "." and "[" count: convert-object-to-dotted-keyvalue-pair
- getKeyValueFromObject: "getKeyedData" and filter by key with text after last "." or "]" which ever is last.
- getLastValues: Use values where key does not include "." or "[" or "]": convert-object-to-dotted-keyvalue-pair
- loopObjectComplex: js-traverse object-traversal
- getKeyedData:
dot.dot(obj)
※ convert-object-to-dotted-keyvalue-pair Use "_" as separator for same functionality: tab=readme-ov-file#using-a-different-separator