目录
当前位置: 首页 > 文档资料 > Snap.svg 英文文档 >

Snap.is(o, type)

优质
小牛编辑
122浏览
2023-12-01

Handy replacement for the typeof operator

Parameters

  1. o…any object or primitive
  2. typestringname of the type, e.g., string,function, number,etc.

Returns: boolean true if given value is of giventype