Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NodeSharedCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Shared
NodeSharedCode
Compare revisions
021300d29473dee2ad229384d22a521c0e5c14aa to 771f8cd079b39ec4050c5ece024dc4d70f342529
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
dojo_project/projects/shared/nodesharedcode
Select target project
No results found
771f8cd079b39ec4050c5ece024dc4d70f342529
Select Git revision
Swap
Target
dojo_project/projects/shared/nodesharedcode
Select target project
dojo_project/projects/shared/nodesharedcode
1 result
021300d29473dee2ad229384d22a521c0e5c14aa
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Toolbox => Add isString function
· f965766a
michael.minelli
authored
1 year ago
f965766a
Merge branch 'esm-migration-and-dependencies-update' into v4.0
· 771f8cd0
michael.minelli
authored
1 year ago
771f8cd0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
helpers/Toolbox.ts
+4
-0
4 additions, 0 deletions
helpers/Toolbox.ts
with
4 additions
and
0 deletions
helpers/Toolbox.ts
View file @
771f8cd0
...
@@ -51,6 +51,10 @@ class Toolbox {
...
@@ -51,6 +51,10 @@ class Toolbox {
public
getKeysWithPrefix
(
obj
:
object
,
prefix
:
string
):
Array
<
string
>
{
public
getKeysWithPrefix
(
obj
:
object
,
prefix
:
string
):
Array
<
string
>
{
return
Object
.
keys
(
obj
).
filter
(
key
=>
key
.
startsWith
(
prefix
));
return
Object
.
keys
(
obj
).
filter
(
key
=>
key
.
startsWith
(
prefix
));
}
}
public
isString
(
value
:
unknown
):
value
is
string
{
return
typeof
value
===
'
string
'
||
value
instanceof
String
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.