9 lines
147 B
JavaScript
9 lines
147 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = function unwrap(value) {
|
||
|
if (value instanceof this.constructor) {
|
||
|
return value.all();
|
||
|
}
|
||
|
|
||
|
return value;
|
||
|
};
|