UNPKG
xhy-xe-utils
Version:
latest (1.0.0)
1.0.0
JavaScript 函数库、工具类
github.com/xuliangzhan/xe-utils
xuliangzhan/xe-utils
xhy-xe-utils
/
methods
/
base
/
hasOwnProp.js
13 lines
(11 loc)
•
272 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** * 判断对象自身属性中是否具有指定的属性 * *
@param
{Object} obj 对象 *
@param
{String/Number} key 键值 *
@return
{Boolean} */
function
hasOwnProp
(obj, key)
{
return
obj.hasOwnProperty(key) }
module
.
exports
= hasOwnProp