/**
 * @since Last modified: 2024-01-04 18:09:12
 * @function isSubset
 * @description Determine whether two arrays have a subset relationship.
 * @param {any[]} child  - Array of child.
 * @param {any[]} parent  - Array of parent.
 * @returns {boolean} - Return true or false.
 * @see {@link https://codepen.io/axui/pen/KKJQRwG|demo @ codepen}
 * @example
 * ax.isSubset([0,1,2],[0,1,2,3,4]);
 * <!--return true-->
 */
'use strict';
const isSubset = (child: any[], parent: any[]) => child.length <= parent.length && child.every(k => parent.includes(k));
export default isSubset;
