Current File : //home/tradevaly/www/node_modules/collect.js/src/methods/wrap.js
'use strict';

module.exports = function wrap(value) {
  if (value instanceof this.constructor) {
    return value;
  }

  if (typeof value === 'object') {
    return new this.constructor(value);
  }

  return new this.constructor([value]);
};