index.js
function populateApiFromInterface(api, iface) {
  Object.keys(iface).forEach(function (key) {
    api.add(key, iface[key]);
  });
}
function populateApiFromInterface(api, iface) {
  Object.keys(iface).forEach(function (key) {
    api.add(key, iface[key]);
  });
}
function populateApiFromInterface ( api , iface ) { Object . keys ( iface ) . forEach ( function ( key ) { api . add ( key , iface [ key ] ) ; } ) ; }
fill api from interface
fill api from interface