Created Woodpecker CI/CD deployment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- Created Dockerfile for packing up API and Web projects as Docker image
This commit is contained in:
13
Web/src/utils/bookmarkHelper.js
Normal file
13
Web/src/utils/bookmarkHelper.js
Normal file
@ -0,0 +1,13 @@
|
||||
export const containsSubstring = (bookmark, searchString) => {
|
||||
if (bookmark === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return Object.values(bookmark)
|
||||
.some(val => typeof(val) == 'object' ?
|
||||
containsSubstring(val, searchString) :
|
||||
typeof(val) == 'number' || typeof(val) == 'boolean' ?
|
||||
val.toString().toLowerCase().includes(searchString.toLowerCase()) :
|
||||
val.toLowerCase().includes(searchString.toLowerCase())
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user