Skip to content
Snippets Groups Projects
Commit 53647276 authored by Aggarwal Himanshu's avatar Aggarwal Himanshu
Browse files

Add utility functions

parent 2818c8c3
No related branches found
No related tags found
2 merge requests!17Merge develop into main,!9Add support for filtering cryptocurrencies using the filter components
export * from "./utils";
export function less_than_number(a, b) {
return Number(a) < Number(b);
}
export function equals_integer(a, b) {
return parseInt(a) === parseInt(b);
}
export function greater_than_number(a, b) {
return Number(a) > Number(b);
}
export function equals_string(a, b) {
return a.toLowerCase() === b.toLowerCase();
}
export function contains_string(a, b) {
return a.toLowerCase().includes(b.toLowerCase());
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment