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

my-easy-fp

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

my-easy-fp

Simple functional programming utility & Misc programming tool

  • 0.10.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21K
decreased by-27.15%
Maintainers
1
Weekly downloads
 
Created
Source

Simple functional programming utility & programming helper tools

False & True checker

Why need this utility?

import { isFalse } from 'my-easy-fp'

const iamboolean = false;

// this line easily miss in refactoring or changing
if (!iamboolean) {
  console.log('I am execute false-case');
}

// more than better!
if (isFalse(iamboolean)) {
  console.log('I am execute false-case');
}

Empty checker

Why need this utility?

const iamempty: null | undefined = undefined;

// this line some boring task
if (iamempty === undefined || iamempty === null) {
  console.log('i am empty');
}

// more than better!
if (isEmpty(iamempty)) {
  console.log('i am empty');
}

Sleep

Why need this utility?

const ms = 1000;

// this line some boring task
await new Promise((resolve) => setTimeout(() => resolve(), ms));

// more than better!
await sleep(ms);

FAQs

Package last updated on 12 Dec 2021

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