Fixed issue where createFrom would misidentify strings as arrays (#3435)

* Update check for Array-like variables

* Updated binding tests to reflect changes

* Update documentation to reflect changes

* Fixed PR number in changelog

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
Leo
2024-04-27 16:30:04 +10:00
committed by GitHub
co-authored by Lea Anthony
parent 66562bfebc
commit c10dfbce78
11 changed files with 17 additions and 16 deletions
@@ -34,7 +34,7 @@ export namespace binding_test {
return a;
}
if (a.slice) {
if (a.slice && a.map) {
return (a as any[]).map(elem => this.convertValues(elem, classs));
} else if ("object" === typeof a) {
if (asMap) {