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.

12 lines (8 loc) 271 B
import { both } from 'ramda'; import isInteger from '../../isInteger'; import MAX_SAFE_INTEGER from './Number.MAX_SAFE_INTEGER'; const isSafeIntegerPolyfill = both( isInteger, (value) => Math.abs(value) <= MAX_SAFE_INTEGER ); export default isSafeIntegerPolyfill;