@extra-array/left
v2.10.19
Published
Gets values from left.
Downloads
417
Readme
Gets values from left. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
This is part of package extra-array.
array.left(x, [n]);
// x: an array
// n: number of values (1)
const array = require("extra-array");
var x = [1, 2, 3];
array.left(x, 1);
// [ 1 ]
array.left(x, 2);
// [ 1, 2 ]