Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fn-object

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fn-object - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

.npmignore

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 @@ /*

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc