JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1510
  • Score
    100M100P100Q109774F
  • License MIT

🦄 Supreme nothingness

Package Exports

  • noop3

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (noop3) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme


noop3


🦄 Supreme nothingness

Build Status Coverage Status

Install

$ npm install --save noop3

Usage

const noop = require('noop3');

function unicorn(fn) {
    fn = fn || noop;
    return fn('unicorn');
}
unicorn();

// also compatible with non-mythical single horned creatures
function narwhal(fn) {
    fn = fn || noop;
    return fn('narwhal');
}
narwhal();

// Using the noop factory
const fn = require('noop3/factory');
const rainbow = fn();
const flowers = fn();
rainbow === flowers
//=> false

rainbow()
//=> undefined

Prior art

License

MIT © Sindre Sorhus