What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-01 21:09:10
firebase timestamp to date angular
import { firestore } from 'firebase/app'; import Timestamp = firestore.Timestamp; @Injectable() export class YourService { .... list = (): Observable<any[]> => this.collection .snapshotChanges() .pipe( map(chang... Add solution -
-
Javascript 2021-10-24 12:09:07
drill into tree to find key javascript
let search = (needle, haystack, found = []) => { Object.keys(haystack).forEach((key) => { if(key === needle){ found.push(haystack[key]); retu... Add solution -
TypeScript 2021-10-22 18:40:11
ts iterate over interface properties
class Activity { public id: string = ''; public title: string = ''; public body: string = '' ; public json: Object = {}; } let activity = new Activity() const headers: Array<Object> = Object.keys(Activity).map(key => { retur... Add solution