UNPKG
js-wrench
Version:
latest (1.3.1)
1.3.1
1.3.0
1.2.2
1.2.1
JS函数库
js-wrench
/
test
/
isArray.test.ts
11 lines
•
277 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{ isArray }
from
"../modules/index"
;
describe
(
"判断是否数组"
,
() =>
{
it
(
"example_1:isArray([])"
,
() =>
{
expect
(
isArray
([])).
toBe
(
true
); });
it
(
"example_2:isArray({})"
,
() =>
{
expect
(
isArray
({})).
toBe
(
false
); }); });