UNPKG

ketting

Version:

Opinionated HATEOAS / Rest client.

11 lines 325 B
export class Resources extends Array { static get [Symbol.species]() { return Array; } constructor(resources) { super(); this.push(...resources); } async get(getOptions) { return Promise.all(this.map(resource => resource.get(getOptions))); } } //# sourceMappingURL=resources.js.map