UNPKG

webpack-assets-manifest

Version:

This Webpack plugin will generate a JSON file that matches the original filename with the hashed version.

15 lines (14 loc) 555 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isObject = isObject; exports.isKeyValuePair = isKeyValuePair; exports.isPropertyKey = isPropertyKey; function isObject(input) { return input !== null && typeof input === 'object' && !Array.isArray(input); } function isKeyValuePair(input) { return isObject(input) && (Object.hasOwn(input, 'key') || Object.hasOwn(input, 'value')); } function isPropertyKey(input) { return typeof input === 'string' || typeof input === 'number' || typeof input === 'symbol'; }