https://github.com/afeiship/next-parse-int
The parseInt int for next.
https://github.com/afeiship/next-parse-int
int next parse
Last synced: 29 days ago
JSON representation
The parseInt int for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-parse-int
- Owner: afeiship
- License: mit
- Created: 2016-05-16T12:15:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-08T14:00:57.000Z (over 4 years ago)
- Last Synced: 2025-06-03T21:18:56.570Z (7 months ago)
- Topics: int, next, parse
- Language: JavaScript
- Homepage:
- Size: 255 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-parse-int
> The parseInt int for next.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
npm install -S @jswork/next-parse-int
```
## usage
```js
import '@jswork/next-parse-int';
const arr = [1, '2a', '3b', '4c'];
const res = arr.map(nx.parseInt);
// [1, 2, 3, 4]
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-parse-int/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-parse-int
[version-url]: https://npmjs.org/package/@jswork/next-parse-int
[license-image]: https://img.shields.io/npm/l/@jswork/next-parse-int
[license-url]: https://github.com/afeiship/next-parse-int/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-parse-int
[size-url]: https://github.com/afeiship/next-parse-int/blob/master/dist/next-parse-int.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-parse-int
[download-url]: https://www.npmjs.com/package/@jswork/next-parse-int