UNPKG

axe-core

Version:

Accessibility engine for automated Web UI testing

11 lines (9 loc) 276 B
/** * Converts array-like (numerical indicies and `length` property) structures to actual, real arrays * @param {Mixed} thing Array-like thing to convert * @return {Array} */ function toArray(thing) { return Array.prototype.slice.call(thing); } export default toArray;