https://github.com/bubblxs/get-any
https://github.com/bubblxs/get-any
javascript npm-package npmjs
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bubblxs/get-any
- Owner: bubblxs
- Created: 2024-07-13T20:37:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-25T13:22:48.000Z (9 months ago)
- Last Synced: 2024-11-17T23:50:48.784Z (8 months ago)
- Topics: javascript, npm-package, npmjs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/get-any
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
get any
> get a random item from an array.
### install
```
npm install get-any
```### usage
```js
import "get-any";const arr = [1, 2, 3, 4];
console.log(arr.getAny()); // => 3
```