import { either, curryN } from 'ramda';
import isArray from './isArray.js';
import isString from './isString.js';
/**
* Determine if input value is an indexed data type.
*
* @func isIndexed
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.26.0|v2.26.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @example
*
* RA.isIndexed([1]) //=> true
* RA.isIndexed('test') //=> true
*/
const isIndexed = curryN(1, either(isString, isArray));
export default isIndexed;