git.schokokeks.org
Repositories
Help
Report an Issue
fs-words.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
714b5b0
Branches
Tags
develop-client_server
master
typescript
fs-words.git
source
helpers
object.ts
[add] api
Christian Fraß
commited
714b5b0
at 2021-03-08 23:03:32
object.ts
Blame
History
Raw
namespace helpers.object { /** */ export function fetch<type_value> ( object : {[field : string] : any}, field : string, fallback : type_value ) : type_value { if (object.hasOwnProperty(field)) { return object[field]; } else { return fallback; } } }