revere.dev/safelock/dashboard/node_modules/es-abstract/2018/IsPropertyKey.js

8 lines
202 B
JavaScript
Raw Permalink Normal View History

2024-07-01 21:55:25 +02:00
'use strict';
// https://262.ecma-international.org/6.0/#sec-ispropertykey
module.exports = function IsPropertyKey(argument) {
return typeof argument === 'string' || typeof argument === 'symbol';
};