![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
create fast getters and setters for deep obj traversal.
objnav creates, compiles and caches appropiate getter/setter functions by using 'Function'
var objnav = require('objnav');
var obj={
a:[0,{b:42}]
};
var N = objnav(['a',1,'b']);
N.get(obj); // returns 42
N.set(obj,5); // returns 5; N.get(obj) == 5
//lazy getter/setter
N(obj); // returns 5;
N(obj,6); returns 6; T.get(obj) is now 6
// more functions:
N.unset(obj) // unsets obj['a'][1]['b']
// secure[exception safe] operations
N.sGet(obj,42) // returns N.get(obj) when no error occurs otherwise 42;
N.sSet(obj,42) // returns value which has been set otherwise null is returned
N.sUnset(obj) // returns 1 if unset was successfull otherwise 0
//traversal
N.chain([1]).get(obj); // accesses obj['a'][1]['b'][1]
N.parent().get(obj); // accesses obj['a'][1];
// templates :
var N2 = objnav(['a','$x','$y']); // threads $<str> as placeholder
N2.bind({x:1,y:'b'})(obj); // works the same way with get/set/ etc...
// cache
N.cache // raw access
N.clearCache() // self explanatory
FAQs
create fast getters and setters for deep obj traversal
The npm package objnav receives a total of 2 weekly downloads. As such, objnav popularity was classified as not popular.
We found that objnav demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.