var numbers = [1, 2, 3, 4, 5]; var hasThree = _.include(numbers, 3); console.log(hasThree); // true
var message = "Hello, world!"; var hasComma = _.include(message, ","); console.log(hasComma); // true
var user = { username: "jdoe", password: "password123" }; var hasPassword = _.include(user, "password123"); console.log(hasPassword); // trueThe code examples above demonstrate how to use the "_include" function provided by underscore. The underscore package library can be determined by checking the source code or looking for the "underscore.js" file in the project directory.