Functions

isInstanceOf

▸ isInstanceOf(value: any, clazz: any): boolean

Defined in is/instanceOf.ts:19

name: isInstanceOf

summary: Tests for a instance of a class.

description: Checks to see if the input value is an instance of the test class.

example:

import { isInstanceOf } from '@polkadot/util';

console.log('isInstanceOf', isInstanceOf(new Array(0), Array)); // => true
1
2
3

Parameters:

Name Type
value any
clazz any

Returns: boolean


Last Updated: 2/26/2019, 11:08:42 AM