You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the set method currently only works with properties that typically contain a Node object or an array of Node objects, it should work with any property that makes sense to update.
Supporting this will require a new module that exports an object like so:
While the
set
method currently only works with properties that typically contain aNode
object or an array ofNode
objects, it should work with any property that makes sense to update.Supporting this will require a new module that exports an object like so:
Then,
node.set('kind', 'var')
would turnlet a = 1
intovar a = 1
.The
exports
would be restructured (on startup) into something like:The
push
,unshift
, andsplice
methods might have their own edge cases, too. These would be handled similarly withinsertProperty
-style functions.Same for the
remove
method withremoveProperty
-style functions.The text was updated successfully, but these errors were encountered: