Sha256: b3fc8130a572c7c25d766f85651de3309c849656354011a6afb99bc999da6f32
Contents?: true
Size: 434 Bytes
Versions: 10
Compression:
Stored size: 434 Bytes
Contents
/*! * is-primitive <https://github.com/jonschlinkert/is-primitive> * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT License */ 'use strict'; // see http://jsperf.com/testing-value-is-primitive/5 module.exports = function isPrimitive(value) { switch (typeof value) { case "string": case "number": case "boolean": case "symbol": return true; } return value == null; };
Version data entries
10 entries across 10 versions & 1 rubygems