Creates a new array of the specified length, filled with the initial value.
const threeOnes = Arr.create(3, 1);const emptyStrings = Arr.create(0, 'Ada');assert.deepStrictEqual(threeOnes, [1, 1, 1]);assert.deepStrictEqual(emptyStrings, []); Copy
const threeOnes = Arr.create(3, 1);const emptyStrings = Arr.create(0, 'Ada');assert.deepStrictEqual(threeOnes, [1, 1, 1]);assert.deepStrictEqual(emptyStrings, []);
Creates a new array of the specified length, filled with the initial value.