@@ -759,6 +759,7 @@ export const getRatingForContentInString = (content = '', str) => (
759759
760760// MISC
761761
762+ // NOTE: used in debugger
762763export const findDifferenceInObject = ( o , n ) => {
763764 const allKeys = new Set ( [
764765 ...Object . keys ( o ) ,
@@ -774,6 +775,7 @@ export const findDifferenceInObject = (o, n) => {
774775 return changes ;
775776} ;
776777
778+ // NOTE: used in Faram:validator
777779export const findDifferenceInList = ( listA , listB , keySelector ) => {
778780 const modified = [ ] ;
779781 const added = [ ] ;
@@ -815,6 +817,7 @@ export const checkVersion = (oldVersionId, newVersionId) => ({
815817 isValueOverriden : isTruthy ( oldVersionId ) && oldVersionId < newVersionId ,
816818} ) ;
817819
820+ // NOTE: only used in chord diagram; maybe on deep
818821// save the svg node element
819822export const saveSvg = ( svgElement , name ) => {
820823 svgElement . setAttribute ( 'xmlns' , 'http://www.w3.org/2000/svg' ) ;
@@ -830,7 +833,7 @@ export const saveSvg = (svgElement, name) => {
830833 document . body . removeChild ( downloadLink ) ;
831834} ;
832835
833- export const getClassNameListAndIndex = ( el , className ) => {
836+ const getClassNameListAndIndex = ( el , className ) => {
834837 const classNameList = ( el . getAttribute ( 'class' ) ) . split ( ' ' ) ;
835838 const index = classNameList . findIndex ( d => d === className ) ;
836839
0 commit comments