the-forest/client/node_modules/es-abstract/2022/IsPropertyKey.js
2024-09-17 20:35:18 -04:00

8 lines
202 B
JavaScript

'use strict';
// https://262.ecma-international.org/6.0/#sec-ispropertykey
module.exports = function IsPropertyKey(argument) {
return typeof argument === 'string' || typeof argument === 'symbol';
};