collect.js
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -10,4 +10,5 @@ module.exports = { | ||
rules: { | ||
'no-console': 0 | ||
} | ||
'no-console': 0, | ||
'newline-before-return': 2, | ||
}, | ||
}; |
@@ -5,3 +5,4 @@ 'use strict'; | ||
console.log(this); | ||
return this; | ||
}; |
@@ -32,2 +32,3 @@ 'use strict'; | ||
}); | ||
return result; | ||
@@ -47,2 +48,3 @@ } | ||
} | ||
return result; | ||
@@ -49,0 +51,0 @@ } |
@@ -15,3 +15,4 @@ 'use strict'; | ||
var keys = Object.keys(this.items); | ||
return this.items[keys[keys.length - 1]]; | ||
}; |
@@ -6,3 +6,4 @@ 'use strict'; | ||
delete this.items[key]; | ||
return value; | ||
}; |
@@ -11,3 +11,4 @@ 'use strict'; | ||
delete this.items[key]; | ||
return value; | ||
}; |
@@ -10,2 +10,3 @@ 'use strict'; | ||
if (valueOrFunction(a) > valueOrFunction(b)) return 1; | ||
return 0; | ||
@@ -17,2 +18,3 @@ }); | ||
if (a[valueOrFunction] > b[valueOrFunction]) return 1; | ||
return 0; | ||
@@ -19,0 +21,0 @@ }); |
@@ -5,3 +5,4 @@ 'use strict'; | ||
fn(this); | ||
return this; | ||
}; |
{ | ||
"name": "collect.js", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "Convenient and dependency free wrapper for working with arrays and objects.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -5,3 +5,4 @@ 'use strict'; | ||
console.log(this); | ||
return this; | ||
}; |
@@ -31,2 +31,3 @@ 'use strict'; | ||
}); | ||
return result; | ||
@@ -46,2 +47,3 @@ } | ||
} | ||
return result; | ||
@@ -48,0 +50,0 @@ } |
@@ -15,3 +15,4 @@ 'use strict'; | ||
const keys = Object.keys(this.items); | ||
return this.items[keys[keys.length - 1]]; | ||
}; |
@@ -6,3 +6,4 @@ 'use strict'; | ||
delete this.items[key]; | ||
return value; | ||
}; |
@@ -11,3 +11,4 @@ 'use strict'; | ||
delete this.items[key]; | ||
return value; | ||
}; |
@@ -10,2 +10,3 @@ 'use strict'; | ||
if (valueOrFunction(a) > valueOrFunction(b)) return 1; | ||
return 0; | ||
@@ -17,2 +18,3 @@ }); | ||
if (a[valueOrFunction] > b[valueOrFunction]) return 1; | ||
return 0; | ||
@@ -19,0 +21,0 @@ }); |
@@ -5,3 +5,4 @@ 'use strict'; | ||
fn(this); | ||
return this; | ||
}; |
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
363630
5049