Arrays & Iterables
Array Difference
easyJS SpecificJS / TS3 tests
Problem Statement
Implement `difference(arr1, arr2)` that returns an array of values from `arr1` that are not present in `arr2`.
Examples
Example 1: difference([1, 2, 3, 4], [2, 4]); // [1, 3]
JavaScript & TypeScript starter code included
Run this as a live interviewPractice solo
3 test cases. No second person needed.