mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-05 11:31:31 +08:00
DISABLE_THIRD_PARTY_CHECK=new npm module causes package-lock change We can get rid of a custom script and use ESLint for these rules. Additionally this means editors will highlight the issue in the editor. Change-Id: I552b52e7f07b4e7430b3f685dbc3b5fad36ffff2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2052167 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
22 lines
585 B
JavaScript
22 lines
585 B
JavaScript
import _curry1 from './internal/_curry1.js';
|
|
import _isNumber from './internal/_isNumber.js';
|
|
|
|
/**
|
|
* Returns the number of elements in the array by returning `list.length`.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.3.0
|
|
* @category List
|
|
* @sig [a] -> Number
|
|
* @param {Array} list The array to inspect.
|
|
* @return {Number} The length of the array.
|
|
* @example
|
|
*
|
|
* R.length([]); //=> 0
|
|
* R.length([1, 2, 3]); //=> 3
|
|
*/
|
|
var length = /*#__PURE__*/_curry1(function length(list) {
|
|
return list != null && _isNumber(list.length) ? list.length : NaN;
|
|
});
|
|
export default length; |