source: node_modules/ramda-adjunct/src/isEmptyArray.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 740 bytes
Line 
1import { both, isEmpty } from 'ramda';
2
3import isArray from './isArray';
4
5/**
6 * Checks if input value is an empty `Array`.
7 *
8 * @func isEmptyArray
9 * @memberOf RA
10 * @since {@link https://char0n.github.io/ramda-adjunct/2.4.0|v2.4.0}
11 * @category Type
12 * @sig * -> Boolean
13 * @param {*} val The value to test
14 * @return {boolean}
15 * @see {@link RA.isNotEmptyArray|isNotEmptyArray}
16 * @example
17 *
18 * RA.isEmptyArray([]); // => true
19 * RA.isEmptyArray([42]); // => false
20 * RA.isEmptyArray({}); // => false
21 * RA.isEmptyArray(null); // => false
22 * RA.isEmptyArray(undefined); // => false
23 * RA.isEmptyArray(42); // => false
24 * RA.isEmptyArray('42'); // => false
25 */
26const isEmptyArray = both(isArray, isEmpty);
27
28export default isEmptyArray;
Note: See TracBrowser for help on using the repository browser.