lib/Check if An Object is An Array.js
// program to check if an object is an array
program to check if an object is an array
program to check if an object is an array
function checkObject(arr) {
    const result = Array.isArray(arr);
    if(result) {
        console.log(`[${arr}] is an array.`);
    }
    else {
        console.log(`${arr} is not an array.`);
    }
}
function checkObject ( arr ) { const result = Array . isArray ( arr ) ; if ( result ) { console . log ( ` ${ arr } ` ) ; } else { console . log ( ` ${ arr } ` ) ; } }
program to check if an object is an array
program to check if an object is an array
// check if arr is array