ones

1.0.0 • Public • Published

ones

A simple tool to create an array with only 1's

Installation

To install, run

$ npm install --save ones

Usage

To use, require it first by

var ones = require("ones");

Then input the array length that you want

ones() // []
ones(0) // []
ones(1) // [1]
ones(5) // [1, 1, 1, 1, 1]

Versions

1.0.0 First version

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i ones

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • joeyism