flickr / flickr-sdk

Almost certainly the best Flickr API client in the world for node and the browser
https://www.flickr.com/services/api
MIT License
131 stars 29 forks source link

Adds support for passing extras as a Set #119

Closed pdokas closed 6 years ago

pdokas commented 6 years ago

Lets you do:

let extras = new Set([
  'fnord',
  'blorf'
];

flickr.people.getInfo({
  extras: extras
});

This follows the Array pattern and gets converted to a comma-separated string, thus guaranteeing unique values from start to finish.