IsPropertyKey.js 207 B

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