UNPKG
js-wrench
Version:
latest (1.3.1)
1.3.1
1.3.0
1.2.2
1.2.1
JS函数库
js-wrench
/
d.ts
/
modules
/
toKeys.d.ts
10 lines
(9 loc)
•
336 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
/** *
@description
返回object自身可枚举属性 * *
@param
{
*
} obj 要返回可枚举属性的对象 *
@return
{
*
} {
Array<string>
} 返回一个给定对象自身的所有可枚举属性的数组 *
@example
toKeys({a:1,b:2}) => ["a", "b"] */
declare
const
toKeys
:
(
obj
:
any
) =>
Array
<
string
>;
export
default
toKeys;