burgos-array
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

burgos-array

A hook with custom array methods

Methods

newArray

a method that returns an array with specified length and initialized in numeric order

import { useArray } from 'burgos-snackbar'

export const App = () => {
    const { newArray } = useArray()
    const five_items = newArray(5)

    console.log(five_items) ## [1, 2, 3, 4, 5]
}

Readme

Keywords

none

Package Sidebar

Install

npm i burgos-array

Weekly Downloads

19

Version

1.1.0

License

ISC

Unpacked Size

2.93 kB

Total Files

10

Last publish

Collaborators

  • nandobfer