Is there any way to make R.find(R.propEq()) case insensitive for an Object Tree? (Currently I am using the Ramda Libraries)
This is a piece of my obj tree:
const objectTree = [ { __type: 'ix:ChecklistGridSection',
For: 'QuestionAnswers',
childNodes:
[ { __type: 'Sorting', childNodes: [Array] },
{ __type: 'grouping', childNodes: [Array] },
{ __type: 'Tabs', childNodes: [Array] },
...
I have a function like this one that I can't change the parameters:
R.find(R.propEq('__type', 'ix:checklistgridsection'))(objectTree);
It will work only with 'ix:CheckListGridSection' as parameter and not with 'ix:checklistgridsection'. I need that it will work for also the others leafs of the tree.
I think that is a bad decision to make all tree lowercase. So I was thinking if there is any way to make R.find(R.propEq( )) case insensitive.