Comparing version 0.2.0 to 0.2.1
10
index.js
@@ -22,3 +22,3 @@ var clone = function (obj) { | ||
var obj = this.obj; | ||
var keys = Object.key(obj); | ||
var keys = Object.keys(obj); | ||
@@ -37,3 +37,3 @@ keys.map(fn) | ||
var obj = this.obj; | ||
var keys = Object.key(obj); | ||
var keys = Object.keys(obj); | ||
var newKeys = keys.filter(fn); | ||
@@ -75,4 +75,4 @@ | ||
var obj = this.obj; | ||
var keys = objValues(obj); | ||
var values = values(obj); | ||
var keys = Object.keys(obj); | ||
var values = objValues(obj); | ||
@@ -107,3 +107,3 @@ values | ||
this.obj = obj; | ||
this.keys = new FunctionalObjectVals(obj); | ||
this.keys = new FunctionalObjectKeys(obj); | ||
this.vals = this.values = new FunctionalObjectVals(obj); | ||
@@ -110,0 +110,0 @@ } |
{ | ||
"name": "fn-object", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "map and filter for object's keys and values, and get a modified object", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "mocha" | ||
}, | ||
@@ -31,3 +31,6 @@ "repository": { | ||
}, | ||
"homepage": "https://github.com/tjmehta/fn-object" | ||
"homepage": "https://github.com/tjmehta/fn-object", | ||
"dependencies": { | ||
"should": "^3.1.3" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
fn-object | ||
'fn-object' | ||
==== | ||
@@ -9,3 +9,3 @@ | ||
```js | ||
var fno = require(fn-object); | ||
var fno = require('fn-object'); | ||
var obj = { | ||
@@ -18,3 +18,3 @@ key: 'val' | ||
return val+'1'; | ||
}); | ||
}) | ||
.val() | ||
@@ -31,6 +31,6 @@ /* | ||
```js | ||
var fno = require(fn-object); | ||
var fno = require('fn-object'); | ||
var obj = { | ||
foo: true, | ||
bar: true; | ||
bar: true, | ||
qux: false | ||
@@ -40,5 +40,5 @@ }; | ||
fno(obj).vals | ||
.filter(function (key) { | ||
.filter(function (val) { | ||
return val; | ||
}); | ||
}) | ||
.val() | ||
@@ -55,3 +55,3 @@ /* | ||
```js | ||
var fno = require(fn-object); | ||
var fno = require('fn-object'); | ||
var obj = { | ||
@@ -64,3 +64,3 @@ key: 'val' | ||
return key+'1'; | ||
}); | ||
}) | ||
.val() | ||
@@ -77,3 +77,3 @@ /* | ||
```js | ||
var fno = require(fn-object); | ||
var fno = require('fn-object'); | ||
var obj = { | ||
@@ -86,5 +86,5 @@ key : true, | ||
fno(obj).keys | ||
.map(function (key) { | ||
.filter(function (key) { | ||
return key.indexOf('key') === 0; | ||
}); | ||
}) | ||
.val() | ||
@@ -91,0 +91,0 @@ /* |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
5173
7
158
1
1
+ Addedshould@^3.1.3
+ Addedshould@3.3.2(transitive)