src/arrays.js
function extract(arr, obj) {
    return arr.filter(item => Object.keys(obj).every(key => item[key] === obj[key]));
}
function extract(arr, obj) {
    return arr.filter(item => Object.keys(obj).every(key => item[key] === obj[key]));
}
function extract ( arr , obj ) { return arr . filter ( item => Object . keys ( obj ) . every ( key => item [ key ] === obj [ key ] ) ) ; }
Created by ndyumin on 15.09.2016.
Created by ndyumin on 15 . 09 . 2016 .