Sha256: c51748689c9e49b332db038a809cc8adafe5049b9ee47d317cee8b9b692b4e80

Contents?: true

Size: 494 Bytes

Versions: 44

Compression:

Stored size: 494 Bytes

Contents

var _typeof = require("./typeof.js")["default"];
function toPrimitive(t, r) {
  if ("object" != _typeof(t) || !t) return t;
  var e = t[Symbol.toPrimitive];
  if (void 0 !== e) {
    var i = e.call(t, r || "default");
    if ("object" != _typeof(i)) return i;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return ("string" === r ? String : Number)(t);
}
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
clapton-0.0.19 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
immosquare-cleaner-0.1.49 node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.14 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
immosquare-cleaner-0.1.48 node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.13 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.12 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.11 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.10 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.9 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.8 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.7 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.6 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.5 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.4 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.3 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js
clapton-0.0.2 lib/clapton/javascripts/node_modules/@babel/runtime/helpers/toPrimitive.js