Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@spudly/times

spudly3ISC0.1.0TypeScript support: included

Returns an array with the given value repeated the specified number of times.

readme

@spudly/times

Returns an array with the given value repeated the specified number of times.

Installation

npm install --save @spudly/times

Usage

import times from '@spudly/times';

times(3, 'bloody mary'); // => ['bloody mary', 'bloody mary', 'bloody mary']