src/api.js
// Check the status of Flickr's JSON response
Check the status of Flickr's JSON response
Check the status of Flickr ' s JSON response
function checkFlickrJson(data) {
  if (data.stat !== 'ok') {
    throw new Error(`Flickr error ${data.code}: ${data.message}`);
  }
}
function checkFlickrJson ( data ) { if ( data . stat !== 'ok' ) { throw new Error ( ` ${ data . code } ${ data . message } ` ) ; } }
Check the status of Flickr's JSON response
Check the status of Flickr ' s JSON response