1.0.2 • Published 12 months ago

burgos-array v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

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]
}
1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago