Created
August 15, 2013 00:30
-
-
Save mde/6237190 to your computer and use it in GitHub Desktop.
This file contains 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
// Determine if `content` is a collection of models | |
else if(content instanceof Array) { | |
if(!type) { | |
throw new Error( | |
'Cannot determine model type from empty array, specify one in opts'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment