source:
imaps-frontend/node_modules/es-abstract/2023/IsPropertyKey.js
Last change on this file was d565449, checked in by , 4 weeks ago | |
---|---|
|
|
File size: 202 bytes |
Rev | Line | |
---|---|---|
[d565449] | 1 | 'use strict'; |
2 | ||
3 | // https://262.ecma-international.org/6.0/#sec-ispropertykey | |
4 | ||
5 | module.exports = function IsPropertyKey(argument) { | |
6 | return typeof argument === 'string' || typeof argument === 'symbol'; | |
7 | }; |
Note:
See TracBrowser
for help on using the repository browser.