Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any dart equivalent for jquery extend?

Tags:

jquery

dart

I want to merge two Maps. I can use Map.addAll method, but this method does not support deep merge. I want to use addAll for all Maps and equvivalent method for Lists inside. Recursive solution is not simple task for me and using JS iterop is dirty. Any solution?

like image 704
Zdeněk Mlčoch Avatar asked Feb 03 '14 00:02

Zdeněk Mlčoch


1 Answers

I have ported it for the Angular Dart UI project, but it's not yet properly tested (but in used in the Rating component)

https://github.com/akserg/angular.dart.ui/blob/master/lib/helper/extend.dart

will be moved shortly to

https://github.com/akserg/angular.dart.ui/blob/master/lib/utils/extend.dart

like image 78
Günter Zöchbauer Avatar answered Sep 16 '22 18:09

Günter Zöchbauer