(source, property, callback)
| 2764 | |
| 2765 | // Internal: Updates a traversed object member. |
| 2766 | var update = function (source, property, callback) { |
| 2767 | var element = walk(source, property, callback); |
| 2768 | if (element === undef) { |
| 2769 | delete source[property]; |
| 2770 | } else { |
| 2771 | source[property] = element; |
| 2772 | } |
| 2773 | }; |
| 2774 | |
| 2775 | // Internal: Recursively traverses a parsed JSON object, invoking the |
| 2776 | // `callback` function for each value. This is an implementation of the |