Skip to content

Instantly share code, notes, and snippets.

@mde
Created August 15, 2013 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mde/6237190 to your computer and use it in GitHub Desktop.
Save mde/6237190 to your computer and use it in GitHub Desktop.
// 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