blob: f43ab581c73e7e2cfe435f427aba67653a5a77c4 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2
3// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
4
5module.exports = function IsPropertyKey(argument) {
6 return typeof argument === 'string' || typeof argument === 'symbol';
7};