feat: add childrenIsAnImage util

This commit is contained in:
Nicolás Quiroz 2023-02-13 20:09:56 -03:00
parent aa1c49d549
commit 1b8ba9cf25
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,3 @@
export const childrenIsAnImage = (children: any) => {
return typeof children[0] === 'object' && children[0].props.hasOwnProperty('src');
};

View File

@ -1,4 +1,5 @@
export { checkNavLinks } from './checkNavLinks';
export { childrenIsAnImage } from './childrenIsAnImage';
export { compareReleasesFn } from './compareReleasesFn';
export { fetchLatestReleaseCommit } from './fetchLatestReleaseCommit';
export { fetchLatestReleaseVersionAndName } from './fetchLatestReleaseVersionAndName';