congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo For Javascript
_isFinite
Code IndexAdd Tabnine to your IDE (free)

How to use
_isFinite
function
in
lodash

Best JavaScript code snippets using lodash._isFinite(Showing top 5 results out of 315)

origin: bitfinexcom/bitfinex-api-node

/**
  * Authenticates all existing & future sockets with the provided credentials.
  * Does nothing if an apiKey/apiSecret pair are already known.
  *
  * @param {object} args - arguments
  * @param {object} args.apiKey - saved if not already provided
  * @param {object} args.apiSecret - saved if not already provided
  * @param {object} [args.calc] - default 0
  * @param {object} [args.dms] - dead man switch, active 4
  */
 auth ({ apiKey, apiSecret, calc, dms } = {}) {
  if (this._socketArgs.apiKey || this._socketArgs.apiSecret) {
   debug('error: auth credentials already provided! refusing auth')
   return
  }

  this._socketArgs.apiKey = apiKey
  this._socketArgs.apiSecret = apiSecret

  if (_isFinite(calc)) this._authArgs.calc = calc
  if (_isFinite(dms)) this._authArgs.dms = dms

  this._sockets.forEach(s => {
   if (!s.ws.isAuthenticated()) {
    s.ws.setAPICredentials(apiKey, apiSecret)
    s.ws.updateAuthArgs(this._authArgs)
    s.ws.auth()
   }
  })
 }
origin: bitfinexcom/bitfinex-api-node

 : msg[msg.length - 1]
if (!_isFinite(authSeq)) {
 debug('recv public seq # %d', seq)
} else {
origin: bitfinexcom/bitfinex-api-node

const authArgs = { ...this._authArgs }
if (_isFinite(calc)) authArgs.calc = calc
if (_isFinite(dms)) authArgs.dms = dms
origin: bitfinexcom/bitfinex-api-node

  : msg[msg.length - 1]
 if (!_isFinite(seq)) return null
if (!_isFinite(authSeq)) return null
if (authSeq === 0) return null // still syncing
origin: bitfinexcom/bitfinex-api-node

prepareAmount(available),
...(_isFinite(value) ? [
 prepareAmount(value),
 currency !== valueCCY
lodash(npm)_isFinite

Most used lodash functions

  • LoDashStatic.map
    Creates an array of values by running each element in collection through iteratee. The iteratee is
  • LoDashStatic.isEmpty
    Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string
  • LoDashStatic.forEach
    Iterates over elements of collection invoking iteratee for each element. The iteratee is invoked wit
  • LoDashStatic.find
    Iterates over elements of collection, returning the first element predicate returns truthy for.
  • LoDashStatic.pick
    Creates an object composed of the picked `object` properties.
  • LoDashStatic.get,
  • LoDashStatic.isArray,
  • LoDashStatic.filter,
  • LoDashStatic.merge,
  • LoDashStatic.isString,
  • LoDashStatic.isFunction,
  • LoDashStatic.assign,
  • LoDashStatic.extend,
  • LoDashStatic.includes,
  • LoDashStatic.keys,
  • LoDashStatic.cloneDeep,
  • LoDashStatic.uniq,
  • LoDashStatic.isObject,
  • LoDashStatic.omit

Popular in JavaScript

  • request
    Simplified HTTP request client.
  • lodash
    Lodash modular utilities.
  • glob
    a little globber
  • fs
  • http
  • bluebird
    Full featured Promises/A+ implementation with exceptionally good performance
  • fs-extra
    fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.
  • rimraf
    A deep deletion module for node (like `rm -rf`)
  • redis
    Redis client library
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now