UNPKG

@kitmi/utils

Version:

A JavaScript utility library for both server and browser

9 lines (6 loc) 168 B
import isInteger from 'lodash/isInteger'; function toInteger(value) { if (isInteger(value)) return value; return parseInt(value); } export default toInteger;