aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@sinonjs/commons/lib/type-of.js
blob: 97a0bb9cb99cb45d2dc0d4bfc3f805058298e7d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict";

var type = require("type-detect");

/**
 * Returns the lower-case result of running type from type-detect on the value
 *
 * @param  {*} value
 * @returns {string}
 */
module.exports = function typeOf(value) {
    return type(value).toLowerCase();
};