New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

functionfoundry

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

functionfoundry - npm Package Compare versions

Comparing version 0.11.2 to 0.12.0

test/isfalsy.js

2

package.json
{
"name": "functionfoundry",
"version": "0.11.2",
"version": "0.12.0",
"description": "Pure function JavaScript library",

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

[![Circle CI](https://circleci.com/gh/WebsiteHQ/functionfoundry.svg?style=svg)](https://circleci.com/gh/WebsiteHQ)
FunctionFoundry is a JavaScript function library for `Node.js` and module bundles like [webpack](https://webpack.github.io/) and [browserify](http://browserify.org/).
FunctionFoundry is JavaScript function library without side effects.
It is the foundation for [formula](https://github.com/WebsiteHQ/formula).
It is for [formula](https://github.com/WebsiteHQ/formula).

@@ -7,0 +7,0 @@ ## Install

@@ -6,3 +6,4 @@ import branch from '../src/branch';

test('branch', function(t) {
t.plan(12);
t.plan(21);
t.equal( typeof branch, 'function' );

@@ -22,2 +23,14 @@ t.equal( branch( false, 1), undefined );

// check for truthy and falsy values
t.equal( branch( 6, 1, 2), 1 );
t.equal( branch( {}, 1, 2), 1 );
t.equal( branch( 1, 1, 2), 1 );
t.equal( branch( [], 1, 2), 1 );
t.equal( branch( 0, 1, 2), 2 );
t.equal( branch( '', 1, 2), 2 );
t.equal( branch( null, 1, 2), 2 );
t.equal( branch( undefined, 1, 2), 2 );
t.equal( branch( NaN, 1, 2), 2 );
});

Sorry, the diff of this file is not supported yet

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