• Check that an object has the following values

    Parameters

    • target: any

      Object to search

    • values: any

      Criteria to check against

    • allowMissing: boolean = false

      Only check the keys that are available on the target

    Returns boolean

    Does target include all the values

    const test = {a: 2, b: 2};
    includes(test, {a: 1}); // true
    includes(test, {b: 1, c: 3}); // false