source: node_modules/ramda-adjunct/es/isNonEmptyArray.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: 796 bytes
Line 
1import { both } from 'ramda';
2import isNotEmpty from './isNotEmpty';
3import isArray from './isArray';
4
5/**
6 * Checks if input value is not an empty `Array`.
7 *
8 * @func isNonEmptyArray
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.isEmptyArray|isEmptyArray}
16 * @example
17 *
18 * RA.isNonEmptyArray([42]); // => true
19 * RA.isNonEmptyArray([]); // => false
20 * RA.isNonEmptyArray({}); // => false
21 * RA.isNonEmptyArray(null); // => false
22 * RA.isNonEmptyArray(undefined); // => false
23 * RA.isNonEmptyArray(42); // => false
24 * RA.isNonEmptyArray('42'); // => false
25 */
26var isNonEmptyArray = both(isArray, isNotEmpty);
27export default isNonEmptyArray;
Note: See TracBrowser for help on using the repository browser.