(obj, key, value)
| 66 | }; |
| 67 | |
| 68 | var setValueForKey = function (obj, key, value) { |
| 69 | if (typeof key == 'number') { |
| 70 | setElement.call(obj, key, value); |
| 71 | } else { |
| 72 | // not an array |
| 73 | if (typeof value === 'undefined') { |
| 74 | // Remove key from object |
| 75 | obj[key] = void 0; |
| 76 | } else { |
| 77 | // Set value on object |
| 78 | obj[key] = value; |
| 79 | } |
| 80 | } |
| 81 | }; |
| 82 | |
| 83 | /** |
| 84 | * Tries to read a number value out of a string, if it fails to match the |
no outgoing calls
no test coverage detected
searching dependent graphs…