Skip to content

Instantly share code, notes, and snippets.

@wryk
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save wryk/8835c3cbb73bef69e296 to your computer and use it in GitHub Desktop.

Select an option

Save wryk/8835c3cbb73bef69e296 to your computer and use it in GitHub Desktop.
import loadImage from 'load-image.js'
/**
* load images
* @param {Array<String>} urls Images' urls
* @promise {Array<Image>}
**/
export default function loadImages (urls) {
return Promise.all(urls.map(loadImage))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment