FCF 2.0 development in progress...
> > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

fcf.isObject() function

boolean fcf.isObject(mixed a_value)

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Checks if the argument is an object and not null

Arguments

mixed a_value
- test argument
Result
boolean
- Returns the result of the check

Example: Function application

console.log(`{}: `, fcf.isObject({})); console.log(`[]: `, fcf.isObject([])); console.log(`null: `, fcf.isObject(null)); console.log(`1: `, fcf.isObject(1));

Output:

{}: true []: true null: false 1: false