* convert array-like objects to real arrays * @param {Object} obj * @returns {Array}
(obj)
| 92700 | * @param {Object} obj |
| 92701 | * @returns {Array} |
| 92702 | */ function toArray(obj) { |
| 92703 | return Array.prototype.slice.call(obj, 0); |
| 92704 | } |
| 92705 | /** |
| 92706 | * unique array with objects based on a key (like 'id') or just by the array's value |
| 92707 | * @param {Array} src [{id:1},{id:2},{id:1}] |
no outgoing calls
no test coverage detected