Socket
Socket
Sign inDemoInstall

fn.js

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fn.js - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

10

build/fn.js

@@ -148,12 +148,2 @@ (function(root, factory) {

fn.is = function (value, type) {
// If the value is null or undefined, return the stringified name,
// otherwise get the [[Class]] and compare to the relevant part of the value:
var valueType = value == null ?
'' + value :
({}).toString.call(value).slice(8, -1).toLowerCase();
return type === valueType;
};
fn.prop = fn.curry(function (name, object) {

@@ -160,0 +150,0 @@ return object[name];

2

package.json
{
"name": "fn.js",
"version": "0.4.0",
"version": "0.4.1",
"description": "Functional programming strategy library for JavaScript",

@@ -5,0 +5,0 @@ "main": "build/fn.js",

@@ -137,14 +137,4 @@ 'use strict';

fn.is = function (value, type) {
// If the value is null or undefined, return the stringified name,
// otherwise get the [[Class]] and compare to the relevant part of the value:
var valueType = value == null ?
'' + value :
({}).toString.call(value).slice(8, -1).toLowerCase();
return type === valueType;
};
fn.prop = fn.curry(function (name, object) {
return object[name];
});
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