index.js
function mapSpritesProperties(images, options, sprites) {
	return new Promise(function (resolve) {
		sprites = _.map(sprites, function (sprite) {
			return _.map(sprite.coordinates, function (coordinates, imagePath) {
				return _.merge(_.find(images, {path: imagePath}), {
					coordinates: coordinates,
					spritePath: sprite.path,
					properties: sprite.properties
				});
			});
		});
		resolve([images, options, sprites]);
	});
}
function mapSpritesProperties(images, options, sprites) {
	return new Promise(function (resolve) {
		sprites = _.map(sprites, function (sprite) {
			return _.map(sprite.coordinates, function (coordinates, imagePath) {
				return _.merge(_.find(images, {path: imagePath}), {
					coordinates: coordinates,
					spritePath: sprite.path,
					properties: sprite.properties
				});
			});
		});
		resolve([images, options, sprites]);
	});
}
function mapSpritesProperties ( images , options , sprites ) { return new Promise ( function ( resolve ) { sprites = _ . map ( sprites , function ( sprite ) { return _ . map ( sprite . coordinates , function ( coordinates , imagePath ) { return _ . merge ( _ . find ( images , { path : imagePath } ) , { coordinates : coordinates , spritePath : sprite . path , properties : sprite . properties } ) ; } ) ; } ) ; resolve ( [ images , options , sprites ] ) ; } ) ; }
Map sprites props for every image.
@param  {Object} options
@param  {Array}  images
@param  {Array}  sprites
@return {Promise}
Map sprites props for every image .