All files / libs/lang toString.js

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                                  1x 68x    
/**
 * @module      libs/lang/toString
 * @createdAt   2016-06-30
 *
 * @copyright   Copyright (c) 2016 Zhonglei Qiu
 * @license     Licensed under the MIT license.
 */
 
/**
 * 获取 any 对象的原生的 toString 的结果
 *
 * @param   {*}      any   任何的 JS 类型
 * @return  {String}
 *
 * @author  Zhonglei Qiu
 * @since   2.0.0
 */
module.exports = function(any) {
  return Object.prototype.toString.call(any)
}