Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
No one has replied
Angular wala basic karanm Eken mona hari projects build karanna try karanna. Thawa angular wala best practices balanna. Hodama de company ekakata join wena eka ethokota kohomath okkoma dewal hadenawa.
Thawa books, articles kiyawanna
are you doing a desktop application ??
what is this ?
D
Thanks For Sharing
@root @Nubelle thanks bro
@shanmugarajah welcome :smiley:
@nubelle elama :blush:
check this https://www.netspotapp.com
Thanks bro
@root Requirement eka balal budget ekak denna mata.
@nb said in Typescrypt array help.:
distance: Number } let steps: Array<Steps> = [ { startDate: '2020-10-21', endDate: '2020-10-22', steps: 101 }, { startDate: '2020-10-22', endDate: '2020-10-23', steps: 102 }, { startDate: '2020-10-24', endDate: '2020-10-25', steps: 103 } ]; let activity: Array<Distance> = [ { startDate: '2020-10-21', endDate: '2020-10-22', distance: 101 }, { startDate: '2020-10-22', endDate: '2020-10-23', distance: 102 }, { startDate: '2020-10-26', endDate: '2020-10-26', distance: 103 } ]; function join<L extends Record<string,any>, R extends Record<string,any>>(left: Array<L>, right: Array<R>, by: Array<string>) { const joined: Array<L&R> = []; for (let l of left) { const fromRight = right.find(r => by.every((curr) => (r[curr] == l[curr]), true)) if (fromRight === undefined) continue; joined.push({ ...fromRight, ...l}) } return joined; } console.log(join(steps, activity, ['startDate', 'endDate'])) /* [LOG]: [{ "startDate": "2020-10-21", "endDate": "2020-10-22", "distance": 101, "steps": 101 }, { "startDate": "2020-10-22", "endDate": "2020-10-23", "distance": 102, "steps": 102 }] */
Thanx Brother. man try karala balannam meka
@thushanka thanks :blush:
@nubelle thanks bro
Thanks mr. Udita
@root Project Requirments: https://drive.google.com/file/d/1UtFm5r7hFqS9WeEB3r8cyyvdu3pQ14_r/view?usp=sharing