Share your code. Components are building blocks, you are the architect.

utils/empty
v1.1.0
1.1.0
1.0.0
Returns the empty value of its argument's type

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/empty in your project
npm i @bit/bit.ramda.utils.empty
Copied

empty (x:*) : *

Returns the empty value of its argument’s type. Ramda defines the empty value of Array ([]), Object ({}), String (''), and Arguments. Other types are supported if they define <Type>.empty, <Type>.prototype.empty or implement the FantasyLand Monoid spec.

Dispatches to the empty method of the first argument, if present.

Example

R.empty(Just(42));      //=> Nothing()
     R.empty([1, 2, 3]);     //=> []
     R.empty('unicorns');    //=> ''
     R.empty({x: 1, y: 2});  //=> {}

Argument

x: *

Returns

*