dot-object
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -413,11 +413,11 @@ (function(global, exportName) { | ||
* | ||
* @param {Object} receipt Transform reciepe | ||
* @param {Object} recipe Transform recipe | ||
* @param {Object} obj Object to be transformed | ||
* @param {Array} mods modifiers for the target | ||
*/ | ||
DotObject.prototype.transform = function(tran, obj, tgt) { | ||
DotObject.prototype.transform = function(recipe, obj, tgt) { | ||
obj = obj || {} | ||
tgt = tgt || {} | ||
Object.keys(tran).forEach(function(key) { | ||
this.set(tran[key], this.pick(key, obj), tgt) | ||
Object.keys(recipe).forEach(function(key) { | ||
this.set(recipe[key], this.pick(key, obj), tgt) | ||
}.bind(this)) | ||
@@ -424,0 +424,0 @@ return tgt |
@@ -407,11 +407,11 @@ 'use strict' | ||
* | ||
* @param {Object} receipt Transform reciepe | ||
* @param {Object} recipe Transform recipe | ||
* @param {Object} obj Object to be transformed | ||
* @param {Array} mods modifiers for the target | ||
*/ | ||
DotObject.prototype.transform = function (tran, obj, tgt) { | ||
DotObject.prototype.transform = function (recipe, obj, tgt) { | ||
obj = obj || {} | ||
tgt = tgt || {} | ||
Object.keys(tran).forEach(function (key) { | ||
this.set(tran[key], this.pick(key, obj), tgt) | ||
Object.keys(recipe).forEach(function (key) { | ||
this.set(recipe[key], this.pick(key, obj), tgt) | ||
}.bind(this)) | ||
@@ -418,0 +418,0 @@ return tgt |
{ | ||
"name": "dot-object", | ||
"description": "dot-object makes it possible to transform and read (JSON) objects using dot notation.", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Rob Halff", |
@@ -407,11 +407,11 @@ 'use strict' | ||
* | ||
* @param {Object} receipt Transform reciepe | ||
* @param {Object} recipe Transform recipe | ||
* @param {Object} obj Object to be transformed | ||
* @param {Array} mods modifiers for the target | ||
*/ | ||
DotObject.prototype.transform = function (tran, obj, tgt) { | ||
DotObject.prototype.transform = function (recipe, obj, tgt) { | ||
obj = obj || {} | ||
tgt = tgt || {} | ||
Object.keys(tran).forEach(function (key) { | ||
this.set(tran[key], this.pick(key, obj), tgt) | ||
Object.keys(recipe).forEach(function (key) { | ||
this.set(recipe[key], this.pick(key, obj), tgt) | ||
}.bind(this)) | ||
@@ -418,0 +418,0 @@ return tgt |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89043