项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

преди 4 години
123456789
  1. exports = module.exports = typeof Object.keys === 'function'
  2. ? Object.keys : shim;
  3. exports.shim = shim;
  4. function shim (obj) {
  5. var keys = [];
  6. for (var key in obj) keys.push(key);
  7. return keys;
  8. }