Global

Methods

add(objnon-null, path, value, iopt)

Add/update a path off an object
Parameters:
Name Type Attributes Description
obj Object
path Array.<string, number>
value *
i number <optional>
Source:
Throws:
Error

eat(str, n) → {string}

Remove `n` chars and blank chars from the beginning of the string
Parameters:
Name Type Description
str string
n number
Source:
Returns:
Type
string

readPath(str) → {Object}

Try to extract a path from the beginning of the string
Parameters:
Name Type Description
str string
Source:
Returns:
with keys 'path' and 'newStr' or null if no path could be read
Type
Object