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.

11 lines (7 loc) 224 B
import { both, converge, equals, identity } from 'ramda'; import isFinite from '../../isFinite'; const isIntegerPolyfill = both( isFinite, converge(equals, [Math.floor, identity]) ); export default isIntegerPolyfill;