All Projects → sindresorhus → Noop3

sindresorhus / Noop3

Licence: mit
◻️ Supreme nothingness

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Noop3

Ponyfill
🦄 Like polyfill but with pony pureness
Stars: ✭ 945 (+430.9%)
Mutual labels:  unicorns
Spek
🎏 Function builder BDD testing framework in Swift
Stars: ✭ 104 (-41.57%)
Mutual labels:  function
Detour Rs
A cross-platform detour library written in Rust
Stars: ✭ 146 (-17.98%)
Mutual labels:  function
Href Counter
Golang multi-stage build to count links within a page for SEO
Stars: ✭ 42 (-76.4%)
Mutual labels:  function
Shellfuncs
Python API to execute shell functions as they would be Python functions
Stars: ✭ 96 (-46.07%)
Mutual labels:  function
Hfunc
java implement Higher-order function ,support map,filter , reduce with parallel, android
Stars: ✭ 112 (-37.08%)
Mutual labels:  function
Stipje
Compile-time XPM-like image parser for C++
Stars: ✭ 9 (-94.94%)
Mutual labels:  unicorns
Knctl
Knative CLI
Stars: ✭ 163 (-8.43%)
Mutual labels:  function
Func Loc
A simple tool that helps you to retrieve the function location from its reference.
Stars: ✭ 99 (-44.38%)
Mutual labels:  function
Eslint Plugin Unicorn
Various awesome ESLint rules
Stars: ✭ 2,157 (+1111.8%)
Mutual labels:  unicorns
Awesome Netherlands Events
🦄 Curated list of awesome Dutch (tech related) events
Stars: ✭ 44 (-75.28%)
Mutual labels:  unicorns
Cartesian Product
PHP - A simple, low-memory footprint function to generate all combinations from a multi-dimensionnal array.
Stars: ✭ 58 (-67.42%)
Mutual labels:  function
Utils.js
Useful JavaScript Functions Collection 一些很实用的JavaScript函数封装集合
Stars: ✭ 121 (-32.02%)
Mutual labels:  function
Sharpmath
A small .NET math library.
Stars: ✭ 36 (-79.78%)
Mutual labels:  function
Func timeout
Python module which allows you to specify timeouts when calling any existing function, and support for stoppable threads
Stars: ✭ 146 (-17.98%)
Mutual labels:  function
Webify
Turn shell commands into web services
Stars: ✭ 852 (+378.65%)
Mutual labels:  function
Playwright Aws Lambda
Support for running Microsoft's Playwright on AWS Lambda and Google Cloud Functions
Stars: ✭ 107 (-39.89%)
Mutual labels:  function
Awesome Deep Learning Music
List of articles related to deep learning applied to music
Stars: ✭ 2,195 (+1133.15%)
Mutual labels:  unicorns
Uftrace
Function graph tracer for C/C++/Rust
Stars: ✭ 1,986 (+1015.73%)
Mutual labels:  function
Sindresorhus.github.com
Personal website of Sindre Sorhus
Stars: ✭ 130 (-26.97%)
Mutual labels:  unicorns


noop3


◻️ Supreme nothingness

Build Status Coverage Status

Install

$ npm install 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();
console.log(rainbow === flowers);
//=> false

rainbow();
//=> undefined

Related

License

MIT © Sindre Sorhus

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].