source: node_modules/ramda-adjunct/es/internal/ponyfills/Number.isSafeInteger.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 279 bytes
RevLine 
[d24f17c]1import { both } from 'ramda';
2import isInteger from '../../isInteger';
3import MAX_SAFE_INTEGER from './Number.MAX_SAFE_INTEGER';
4var isSafeIntegerPonyfill = both(isInteger, function (value) {
5 return Math.abs(value) <= MAX_SAFE_INTEGER;
6});
7export default isSafeIntegerPonyfill;
Note: See TracBrowser for help on using the repository browser.