s-yadav / jsonQ

A JavaScript library to make manipulation and extraction of data from a JSON very easy and fast.
MIT License
202 stars 69 forks source link

Set false as a value to node #13

Open Ankit-Dave opened 7 years ago

Ankit-Dave commented 7 years ago

nodes.find('isSelected').value(false)

https://github.com/s-yadav/jsonQ/blob/master/jsonQ.js#L354

//to return value if called as getter (ie value is undefined)
            if (!value) {

it will consider a value method to return a current value instead of setting value.