Lobashov_Ivan_PIBD-21_IP/Lab2/node_modules/es-abstract/2021/IsPropertyKey.js

8 lines
202 B
JavaScript
Raw Normal View History

2024-01-10 22:39:31 +04:00
'use strict';
// https://262.ecma-international.org/6.0/#sec-ispropertykey
module.exports = function IsPropertyKey(argument) {
return typeof argument === 'string' || typeof argument === 'symbol';
};