IsPropertyKey.js 202 B

1234567
  1. 'use strict';
  2. // https://262.ecma-international.org/6.0/#sec-ispropertykey
  3. module.exports = function IsPropertyKey(argument) {
  4. return typeof argument === 'string' || typeof argument === 'symbol';
  5. };