Andrioden / gnstats

Game Night Stats
3 stars 1 forks source link

Make hostname to person id method reusable somewhere #35

Closed Andrioden closed 6 years ago

Andrioden commented 6 years ago
$scope.personIdFromName = function (name) {
    var host = $rootScope.persons.find(x => x.name === name && x.id !== 'undefined');
    if (typeof host !== "undefined")
        return host.id;
}
Andrioden commented 6 years ago

neh