All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- Created Dockerfile for packing up API and Web projects as Docker image
13 lines
504 B
JavaScript
13 lines
504 B
JavaScript
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())
|
|
);
|
|
} |