normaliseKey.js 408 B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. function normaliseKey(key) {
  4. // Cast the key to a string, as that's all we can set as a key.
  5. if (typeof key !== 'string') {
  6. console.warn(key + " used as a key, but it is not a string.");
  7. key = String(key);
  8. }
  9. return key;
  10. }
  11. exports.normaliseKey = normaliseKey;
  12. //# sourceMappingURL=normaliseKey.js.map