Extra features on native objects
npm:
npm install @avidian/extras
yarn:
yarn add @avidian/extras
const data = [1, 2, 3];
const randomValue = data.random();
const first = data.first();
const last = data.last();
// Flatten
const data = [1, 2, 3, [4, 5]];
// [1, 2, 3, 4, 5]
const flattened = data.flatten()