提交 475d6e58 编写于 作者: 杜庆泉's avatar 杜庆泉

add isArray

上级 b8272233
...@@ -54,6 +54,12 @@ export function testKeyWord(): Result { ...@@ -54,6 +54,12 @@ export function testKeyWord(): Result {
expect(instanceRet4).toEqual(true) expect(instanceRet4).toEqual(true)
}) })
test('isArray', () => {
let user1:any = new User()
expect(Array.isArray(user1)).toEqual(false)
expect(Array.isArray([1,2,3])).toEqual(true)
})
}) })
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册