12345678910111213141516171819202122232425 |
- import { VERSION } from './_setup.js';
- export default function _(obj) {
- if (obj instanceof _) return obj;
- if (!(this instanceof _)) return new _(obj);
- this._wrapped = obj;
- }
- _.VERSION = VERSION;
- _.prototype.value = function() {
- return this._wrapped;
- };
- _.prototype.valueOf = _.prototype.toJSON = _.prototype.value;
- _.prototype.toString = function() {
- return String(this._wrapped);
- };
|