PIbd-22.-Stroev-V.M.-Intern.../Lab2/node_modules/es-abstract/2023/IsPropertyKey.js
2023-10-28 00:49:09 +03: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';
};