@extra-array/left-update.min

Gets values from the left. [:running:] [:vhs:] [:package:] [:moon:] [:ledger:] > Alternatives: [left], [left$]. > Similar: [left], [middle], [right]. > This is part of package [extra-array].

Usage no npm install needed!

<script type="module">
  import extraArrayLeftUpdateMin from 'https://cdn.skypack.dev/@extra-array/left-update.min';
</script>

README

Gets values from the left. :running: :vhs: :package: :moon: :ledger:

Alternatives: left, left$.
Similar: left, middle, right.
This is part of package extra-array.

This is browserified, minified version of @extra-array/left-update.
It is exported as global variable array_left$.
CDN: unpkg, jsDelivr.

array.left$(x, [n]);
// x: an array (updated)
// n: number of values (1)
// --> x
const array = require('extra-array');

var x = [1, 2, 3];
array.left$(x, 1);
// [ 1 ]

x;
// [ 1 ]

var x = [1, 2, 3];
array.left$(x, 2);
// [ 1, 2 ]

references