Initial commit

This commit is contained in:
jiapengyu
2026-07-27 13:37:48 +08:00
commit ecba71e2a5
39123 changed files with 5989154 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import _curry1 from './internal/_curry1';
import _isNumber from './internal/_isNumber';
/**
* 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;