UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

12 lines (7 loc) 330 B
'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const differenceWith = require('./differenceWith.js'); function isSubsetWith(superset, subset, areItemsEqual) { return differenceWith.differenceWith(subset, superset, areItemsEqual).length === 0; } exports.isSubsetWith = isSubsetWith;