UNPKG

@gqlts/cli

Version:

Generate a client sdk from your GraphQl API

19 lines 496 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sortKeys = sortKeys; exports.intersection = intersection; function sortKeys(obj) { obj = obj || {}; const ordered = {}; Object.keys(obj) .sort() // .reverse() .forEach(function (key) { ordered[key] = obj[key]; }); return ordered; } function intersection(a) { return a.reduce((p, c) => p.filter((e) => c.includes(e))); } //# sourceMappingURL=support.js.map