* Filter out the given `arr` array with the elements found in `excludedElements`. * This returns a new array and does not modify the source. * cf. verification here : http://codepen.io/AnotherLinuxUser/pen/XpvrMg?editors=0012 * * @param {Array} arr * @param {Array} excludedE
(arr, excludedElements)
| 1411 | * @returns {*|Array.<T>} |
| 1412 | */ |
| 1413 | static filterOut(arr, excludedElements) { |
| 1414 | return arr.filter(element => !this.isInArray(element, excludedElements)); |
| 1415 | } |
| 1416 | |
| 1417 | /** |
| 1418 | * Remove the trailing zeros in the decimal part of a number. |