%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/node_modules/lodash-es/
Upload File :
Create Path :
Current File : //var/www/html/node_modules/lodash-es/_baseToNumber.js

import isSymbol from './isSymbol.js';

/** Used as references for various `Number` constants. */
var NAN = 0 / 0;

/**
 * The base implementation of `_.toNumber` which doesn't ensure correct
 * conversions of binary, hexadecimal, or octal string values.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 */
function baseToNumber(value) {
  if (typeof value == 'number') {
    return value;
  }
  if (isSymbol(value)) {
    return NAN;
  }
  return +value;
}

export default baseToNumber;

Zerion Mini Shell 1.0