main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
271 bytes
|
Line | |
---|
1 | import { both } from 'ramda';
|
---|
2 |
|
---|
3 | import isInteger from '../../isInteger';
|
---|
4 | import MAX_SAFE_INTEGER from './Number.MAX_SAFE_INTEGER';
|
---|
5 |
|
---|
6 | const isSafeIntegerPonyfill = both(
|
---|
7 | isInteger,
|
---|
8 | (value) => Math.abs(value) <= MAX_SAFE_INTEGER
|
---|
9 | );
|
---|
10 |
|
---|
11 | export default isSafeIntegerPonyfill;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.