Created
May 26, 2021 14:18
-
-
Save sergueyarellano/369bb80ffdc6cccda02fa02035132ca9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isValidInterface (input, model) { | |
return Array.isArray(input) | |
? input.every(element => Object.keys(element).every(checkTypeWith(element, model))) | |
: Object.keys(input).every(checkTypeWith(input, model)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment