lodash APIs
- get
- isEmpty
- cloneDeep
- debounce
- omit
- isEqual
- find
- merge
- map
- filter
- throttle
- sortBy
- set
- isString
- isArray
- pick
- orderBy
- groupBy
- includes
- isObject
- noop
- findIndex
- isFunction
- isNil
- uniqueId
- pickBy
- uniq
- kebabCase
- without
- camelCase
- isNumber
- uniqBy
- isUndefined
- capitalize
- clone
- range
- omitBy
- remove
- forIn
- forEach
- reduce
- flatten
- zipObject
- mapValues
- concat
- trim
- castArray
- difference
- memoize
- keyBy
- assign
- each
- upperFirst
- chain
- sample
- isPlainObject
- has
- mapKeys
- isNull
- last
- isBoolean
- identity
- padStart
- head
- size
- conformsTo
- mergeWith
- transform
- uniqWith
- union
- toString
- reject
- snakeCase
- max
- min
- reverse
- slice
- isInteger
- startsWith
- first
- sumBy
- maxBy
- minBy
- _
- xor
- replace
- take
- endsWith
- toLower
- clamp
- toPairs
- some
- extend
- times
- flattenDeep
- escapeRegExp
- shuffle
- round
- toInteger
- isNaN
- unset
- VERSION
- nth
- flow
- sum
- isFinite
- values
- lowerCase
- deburr
- isEqualWith
- cloneDeepWith
- hasIn
- findLast
- findKey
- differenceBy
- pull
- findLastIndex
- partition
- at
- defer
- intersectionBy
- invert
- delay
- forOwn
- pullAt
- once
- sampleSize
- random
- defaults
- unescape
- keys
- toNumber
- wrap
- inRange
- join
- template
- split
- words
- toSafeInteger
- pullAllBy
- unionWith
- xorBy
- differenceWith
- indexOf
- multiply
- divide
- every
- toPath
- defaultTo
- isObjectLike
- intersection
- startCase
- sortedIndexBy
OtherRelated APIs
lodash#isNaN JavaScript Examples
The following examples show how to use
lodash#isNaN.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.js From hzero-front with Apache License 2.0 | 6 votes |
changeViewWidth(event, key, dir, elementRef, delta) {
const { component } = this.props;
const { originKeyMapIndex } = this.state;
const { originWidth } = this.state;
const { width: moveWidth = 0 } = delta;
component.fields[originKeyMapIndex[key]].width =
originWidth + (isNaN(moveWidth) ? 0 : moveWidth);
// 需要更新组件
// todo remove this after complete
this.forceUpdate();
}
Example #2
Source File: index.js From hzero-front with Apache License 2.0 | 6 votes |
/**
* 计算总量
* @param {array} data
*/
@Bind()
countTotal(data) {
const { statColumns = [] } = this.state;
let title = '';
if (isArray(data)) {
data.shift();
for (let i = 1; i < statColumns.length + 1; i++) {
let num = 0;
data.forEach((item) => {
if (!isNaN(item[i])) {
num += item[i];
}
});
title = `${title}总${statColumns[i - 1].text}:${num}\n`;
}
}
return title;
}
Example #3
Source File: helper.js From d2admin-permission with MIT License | 5 votes |
/**
* @description 传入一个值 返回处理成数字的结果
* @param {Any} value 需要处理的值
*/
export function getNumberOrZero (value) {
const result = toNumber(value)
return isNaN(result) ? 0 : result
}