app/pb_kits/playbook/utilities/text.ts in playbook_ui-11.5.0.pre.alpha.fontawesome vs app/pb_kits/playbook/utilities/text.ts in playbook_ui-11.5.0.pre.alpha.pre.rubocop
- old
+ new
@@ -8,10 +8,10 @@
isEmpty(sentence) ? sentence : sentence.split(' ').map(titleizedWord).join(' ')
)
const notEmpty = (value: string | Record<string, unknown>): boolean => !isEmpty(value)
-export const joinPresent = (array: string[], separator: string): string => (
+export const joinPresent = (array: [], separator: string): string => (
filter(array, notEmpty).join(separator)
)
export const camelToSnakeCase = (word: string): string => {
return word.split(/([A-Z])/g).map((w, i) => {