source: node_modules/ramda-adjunct/es/isIndexed.js@ d24f17c

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

Initial commit

  • Property mode set to 100644
File size: 536 bytes
Line 
1import { either, curryN } from 'ramda';
2import isArray from './isArray';
3import isString from './isString';
4
5/**
6 * Determine if input value is an indexed data type.
7 *
8 * @func isIndexed
9 * @memberOf RA
10 * @since {@link https://char0n.github.io/ramda-adjunct/2.26.0|v2.26.0}
11 * @category Type
12 * @sig * -> Boolean
13 * @param {*} val The value to test
14 * @return {boolean}
15 * @example
16 *
17 * RA.isIndexed([1]) //=> true
18 * RA.isIndexed('test') //=> true
19 */
20
21var isIndexed = curryN(1, either(isString, isArray));
22export default isIndexed;
Note: See TracBrowser for help on using the repository browser.