Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bubblxs/get-any
https://github.com/bubblxs/get-any
javascript npm-package npmjs
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bubblxs/get-any
- Owner: bubblxs
- Created: 2024-07-13T20:37:22.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-14T21:30:27.000Z (4 months ago)
- Last Synced: 2024-09-29T15:41:44.454Z (about 1 month ago)
- Topics: javascript, npm-package, npmjs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/get-any
- Size: 2.93 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
```