Check if JavaScript objects has only specific properties
1–3 of 3 posts
Re: Check if JavaScript objects has only specific properties
#2Why not just use a proper Map object?
Re: Check if JavaScript objects has only specific properties
#3Why not just use a proper Map object?
My intention was to quickly validate the response of a ReST API by making sure only desired properties are present in the response (avoiding exposure of not required properties). using validators like joi, ajs etc is one way, but in some cases thats a bit extra work for the node