Skip to content

Commit

Permalink
perf(loader): remove isObject
Browse files Browse the repository at this point in the history
  • Loading branch information
rbalet committed Nov 5, 2024
1 parent 98de76c commit 2ed82fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-translate-multi-http-loader",
"version": "19.0.0",
"version": "19.0.1",
"license": "MIT",
"author": "Raphael Balet",
"maintainers": [
Expand Down
2 changes: 1 addition & 1 deletion projects/multi-http-loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-translate-multi-http-loader",
"version": "19.0.0",
"version": "19.0.1",
"license": "MIT",
"author": {
"name": "Raphaël Balet",
Expand Down
5 changes: 0 additions & 5 deletions projects/multi-http-loader/src/lib/multi-http-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,4 @@ export class MultiTranslateHttpLoader implements TranslateLoader {
map((response) => response.reduce((acc, curr) => mergeDeep(acc, curr), {})),
)
}

// @ToDo: Use it from ngx-translate once it gets exported: https://github.com/rbalet/ngx-translate-multi-http-loader/issues/35
isObject(item: any): boolean {
return item && typeof item === 'object' && !Array.isArray(item)
}
}

0 comments on commit 2ed82fc

Please sign in to comment.