UNPKG

sly-utils

Version:

sly-utils is a modular and efficient JavaScript utility library designed to simplify complex tasks.

14 lines (13 loc) 416 B
/** * Utility method to shuffle the given array and returns the shuffled array. * @param {array} Array of values * @returns {array} Returns the array of shuffled values * * @example * * const list = ['apple', 'banana', 'cherry', 'grapes', 'jackfruit', 'kiwi']; * shuffle(list); * // => ["jackfruit", "apple", "kiwi", "grapes", "banana", "cherry"] * */ export declare const shuffle: (arr: any[]) => any[];