In Angular 2 how do I check if a property is an array?
I have tried constructor but get a function as below:
function Array() { [native code] }
My Code:
let content: any = {id: '1324234', value:{id:null}};
if(content.value.constructor === 'Array'){
console.log('It is an array');
} else {
console.log('Not an array');
}