I get user data such as email, password, username, and I need to check null data in params in express.js, I make a simple script for checking for null in the array, but I cant integrate it with expres.jsvar arr = [null, "Lol", "Kek", "Chebyrek"]; // Is in array null varibles? true is yes, false if no :) arr.some( (num)=>{ if ( num==null ) { return true } else { return false } } ) // Its good for express.js api check req.params :3
Submitted February 19, 2018 at 06:07AM by maratmkhitaryan
No comments:
Post a Comment