feat: add childrenIsAnImage util
This commit is contained in:
parent
aa1c49d549
commit
1b8ba9cf25
|
@ -0,0 +1,3 @@
|
|||
export const childrenIsAnImage = (children: any) => {
|
||||
return typeof children[0] === 'object' && children[0].props.hasOwnProperty('src');
|
||||
};
|
|
@ -1,4 +1,5 @@
|
|||
export { checkNavLinks } from './checkNavLinks';
|
||||
export { childrenIsAnImage } from './childrenIsAnImage';
|
||||
export { compareReleasesFn } from './compareReleasesFn';
|
||||
export { fetchLatestReleaseCommit } from './fetchLatestReleaseCommit';
|
||||
export { fetchLatestReleaseVersionAndName } from './fetchLatestReleaseVersionAndName';
|
||||
|
|
Loading…
Reference in New Issue