We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi - I just started using your library for something, and I realised I can get(), and I can set(), but I'd like to be able to remove().
get()
set()
remove()
Any chance of putting that in?
The text was updated successfully, but these errors were encountered:
In case it's useful, this is my current polyfill:
jsonPointer.remove = jsonPointer.remove || function (obj, path) { var parts = this.parse(path); var finalProperty = parts.pop(); var parent = parts.length ? this.get(obj, this.compile(parts)) : obj; delete parent[finalProperty]; return this; };
Sorry, something went wrong.
FYI - the parts.length check is because of issue #4.
parts.length
Good point! A delete method is definitely useful.
b7089d2
No branches or pull requests
Hi - I just started using your library for something, and I realised I can
get()
, and I canset()
, but I'd like to be able toremove()
.Any chance of putting that in?
The text was updated successfully, but these errors were encountered: