Creates a new List containing values.
values
const { List } = require('immutable');List.of(1, 2, 3, 4)// List [ 1, 2, 3, 4 ]
Note: Values are not altered or converted in any way.
const { List } = require('immutable');List.of({x:1}, 2, [3], 4)// List [ { x: 1 }, 2, [ 3 ], 4 ]
Rest
Generated using TypeDoc
Creates a new List containing
values
.Note: Values are not altered or converted in any way.