Afanasev_Stepan_PIbd-21_IP/ИП 3 лаба/node_modules/es-abstract/2016/IsPropertyKey.js
[USERNAME] 0dd26716dc Lab2-5
2024-01-10 16:11:49 +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';
};