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 279 B
import { both } from 'ramda'; import isInteger from '../../isInteger'; import MAX_SAFE_INTEGER from './Number.MAX_SAFE_INTEGER'; var isSafeIntegerPolyfill = both(isInteger, function (value) { return Math.abs(value) <= MAX_SAFE_INTEGER; }); export default isSafeIntegerPolyfill;