Lodash - stubFalse method


Advertisements

Syntax

_.stubFalse()

This method returns false.

Output

  • (boolean) − Returns false.

Example

var _ = require('lodash');
var arrays = _.times(2, _.stubFalse);
 
console.log(arrays);

Save the above program in tester.js. Run the following command to execute this program.

Command

\>node tester.js

Output

[ false, false ]
lodash_util.htm
Advertisements