Fix bug typo in setDeepProperty

This commit is contained in:
Colin Caine 2018-02-02 13:11:23 +00:00
parent 2174224244
commit 083600750b

View file

@ -187,7 +187,7 @@ function getDeepProperty(obj, target) {
@param target path of properties as an array
*/
function setDeepProperty(obj, value, ...target) {
function setDeepProperty(obj, value, target) {
if (target.length > 1) {
// If necessary antecedent objects don't exist, create them.
if (obj[target[0]] === undefined) {