UNPKG

ramda-adjunct

Version:

Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.

7 lines 285 B
import { both } from 'ramda'; import isInteger from '../../isInteger.js'; import MAX_SAFE_INTEGER from './Number.MAX_SAFE_INTEGER.js'; var isSafeIntegerPonyfill = both(isInteger, function (value) { return Math.abs(value) <= MAX_SAFE_INTEGER; }); export default isSafeIntegerPonyfill;