sindresorhus / Noop3
Licence: mit
◻️ Supreme nothingness
Stars: ✭ 178
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Noop3
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
Func Loc
A simple tool that helps you to retrieve the function location from its reference.
Stars: ✭ 99 (-44.38%)
Mutual labels: function
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
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
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
Sindresorhus.github.com
Personal website of Sindre Sorhus
Stars: ✭ 130 (-26.97%)
Mutual labels: unicorns
◻️ Supreme nothingness
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].