123456789101112131415161718192021222324252627 |
- 'use strict';
-
- let fastProto = null;
-
-
-
-
-
- function FastObject(o) {
-
-
-
- if (fastProto !== null && typeof fastProto.property) {
- const result = fastProto;
- fastProto = FastObject.prototype = null;
- return result;
- }
- fastProto = FastObject.prototype = o == null ? Object.create(null) : o;
- return new FastObject;
- }
-
-
- FastObject();
-
- module.exports = function toFastproperties(o) {
- return FastObject(o);
- };
|