source: node_modules/ramda-adjunct/src/internal/ponyfills/Number.isSafeInteger.js

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 
1import { both } from 'ramda';
2
3import isInteger from '../../isInteger';
4import MAX_SAFE_INTEGER from './Number.MAX_SAFE_INTEGER';
5
6const isSafeIntegerPonyfill = both(
7 isInteger,
8 (value) => Math.abs(value) <= MAX_SAFE_INTEGER
9);
10
11export default isSafeIntegerPonyfill;
Note: See TracBrowser for help on using the repository browser.