of

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
2
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
716 B
Returns a singleton array containing the value provided.
1 contributor
Install of as a package?
Copied
npm i @bit/justin-capalbo.ramda.of
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
of (
x:*
) : Array

Returns a singleton array containing the value provided.

Note this of is different from the ES6 of; See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of

Example
R.of(null); //=> [null]
     R.of([42]); //=> [[42]]
Argument
x: *

any value

Returns
Array

An array wrapping `x`.

Help and resources