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

fn-pasta

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fn-pasta

Functional Pasta ================

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Functional Pasta

A collection of functional functions that I have found myself copy pastaing around.

I am trying to separate the pasta into useful strands.

comp(arr)

Turn array (or arguments) of functions into a single function that feeds the return value of one into the next.

partial(fn, [args, ...])

Return fn with arguments applied. Blank spots are held for nulls.

limit(num)

Return a function that takes a fn and limits it to the number of args provided.

casify(obj[, default])

Return a function that takes a case and checks to see if it is in obj. If not use the default, if not use the _default property of the object, if not use the default property of the object.

op(operator)

Returns a function that applies the operator to the arguments.

d(arg)

return arg. An identity function. Also op('').

get(key)

Returns a function that gets key from the object it is called on.

FAQs

Package last updated on 16 Jan 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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