JSFiddle - React, Tailwind, and code Playground

by Jon-Carlos Rivera

JavaScript

var keys = ['a', 'b', 'c'];
var obj1 = {a: true, b: true, c: true};
var obj2 = {a: true, b: true};

var everyKey = _.partial(_.every, keys);
var containedInObject = _.compose(_.partial(_.partial, _.contains), _.keys);

console.log(everyKey(containedInObject(obj1)));
console.log(everyKey(containedInObject(obj2)));