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.1.1 to 0.2.0

8

index.js

@@ -0,1 +1,8 @@

var clone = function (obj) {
var out = obj;
Object.keys(obj).forEach(function (key) {
out[key] = obj[key];
});
return out;
};
var objValues = function (obj) {

@@ -95,2 +102,3 @@ return Object.keys(obj).map(function (key) {

function FunctionalObject (obj) {
obj = clone(obj);
this.obj = obj;

@@ -97,0 +105,0 @@ this.keys = new FunctionalObjectVals(obj);

4

package.json
{
"name": "fn-object",
"version": "0.1.1",
"description": "map and filter for object's keys and values (that modify the object)",
"version": "0.2.0",
"description": "map and filter for object's keys and values, and get a modified object",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

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