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: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bubblxs/get-any
- Owner: bubblxs
- Created: 2024-07-13T20:37:22.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-14T21:30:27.000Z (6 months ago)
- Last Synced: 2024-10-13T08:21:21.730Z (3 months 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
```