git.schokokeks.org
Repositories
Help
Report an Issue
fs-words.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
faf7e12
Branches
Tags
develop-client_server
master
typescript
fs-words.git
server
source
helpers
object.ts
[mov] server
Christian Fraß
commited
faf7e12
at 2021-03-08 23:05:42
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; } } }