* A generic error utility function. * @private * @param {String} type The error type. * @returns {Error} Throws a `RangeError` with the applicable error message.
(type)
| 51 | * @returns {Error} Throws a `RangeError` with the applicable error message. |
| 52 | */ |
| 53 | function error(type) { |
| 54 | throw new RangeError(errors[type]); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * A generic `Array#map` utility function. |