process.stdin.resume();
process.stdin.setEncoding('utf8');
// Your code here!
var search = [1,2,3,4,5];
var data = [1,2,6,5];
search.forEach(function(element){
console.log(data.includes(element));
});
#結果
true
true
false
false
true
Go to list of users who liked
More than 1 year has passed since last update.
process.stdin.resume();
process.stdin.setEncoding('utf8');
// Your code here!
var search = [1,2,3,4,5];
var data = [1,2,6,5];
search.forEach(function(element){
console.log(data.includes(element));
});
#結果
true
true
false
false
true
Register as a new user and use Qiita more conveniently
Go to list of users who liked