@@ -62,16 +62,16 @@ export default (
6262 /* Functions */
6363 /* -------------------------------------------------------------------------- */
6464
65- function getLeaves (
65+ const getLeaves = (
6666 siblings : { configurable ?: boolean ; value : Record < string , unknown > [ ] } ,
6767 parent : {
6868 configurable ?: boolean ;
6969 value ?: Record < string , unknown > | undefined ;
7070 } = { } ,
71- ) : Record < string , unknown > [ ] {
72- function defineProperties (
71+ ) : Record < string , unknown > [ ] => {
72+ const defineProperties = (
7373 value : Record < string , unknown > ,
74- ) : Record < string , unknown > [ ] {
74+ ) : Record < string , unknown > [ ] => {
7575 Object . defineProperties ( value , {
7676 ...properties ,
7777 [ keyParent ] : parent ,
@@ -87,9 +87,9 @@ export default (
8787 { configurable, value } ,
8888 ) ,
8989 ] ;
90- }
90+ } ;
9191 return siblings . value . flatMap ( defineProperties ) ;
92- }
92+ } ;
9393
9494 /* -------------------------------------------------------------------------- */
9595 /* Reactives */
@@ -111,7 +111,7 @@ export default (
111111 /* Functions */
112112 /* -------------------------------------------------------------------------- */
113113
114- function add ( pId : string ) : string | undefined {
114+ const add = ( pId : string ) : string | undefined => {
115115 const the : Record < string , unknown > | undefined = leaves . value . find (
116116 ( leaf ) => leaf [ keyId ] === pId ,
117117 ) ;
@@ -136,11 +136,11 @@ export default (
136136 return id ;
137137 }
138138 return undefined ;
139- }
139+ } ;
140140
141141 /* -------------------------------------------------------------------------- */
142142
143- function down ( pId : string ) : void {
143+ const down = ( pId : string ) : void => {
144144 const the : Record < string , unknown > | undefined = leaves . value . find (
145145 ( leaf ) => leaf [ keyId ] === pId ,
146146 ) ;
@@ -157,11 +157,11 @@ export default (
157157 siblings [ index ] ,
158158 ] ;
159159 }
160- }
160+ } ;
161161
162162 /* -------------------------------------------------------------------------- */
163163
164- function left ( pId : string ) : string | undefined {
164+ const left = ( pId : string ) : string | undefined => {
165165 const the : Record < string , unknown > | undefined = leaves . value . find (
166166 ( leaf ) => leaf [ keyId ] === pId ,
167167 ) ;
@@ -182,11 +182,11 @@ export default (
182182 }
183183 }
184184 return undefined ;
185- }
185+ } ;
186186
187187 /* -------------------------------------------------------------------------- */
188188
189- function remove ( pId : string ) : string | undefined {
189+ const remove = ( pId : string ) : string | undefined => {
190190 const the : Record < string , unknown > | undefined = leaves . value . find (
191191 ( leaf ) => leaf [ keyId ] === pId ,
192192 ) ;
@@ -215,11 +215,11 @@ export default (
215215 }
216216 }
217217 return undefined ;
218- }
218+ } ;
219219
220220 /* -------------------------------------------------------------------------- */
221221
222- function right ( pId : string ) : string | undefined {
222+ const right = ( pId : string ) : string | undefined => {
223223 const the : Record < string , unknown > | undefined = leaves . value . find (
224224 ( leaf ) => leaf [ keyId ] === pId ,
225225 ) ;
@@ -239,11 +239,11 @@ export default (
239239 }
240240 }
241241 return undefined ;
242- }
242+ } ;
243243
244244 /* -------------------------------------------------------------------------- */
245245
246- function up ( pId : string ) : void {
246+ const up = ( pId : string ) : void => {
247247 const the : Record < string , unknown > | undefined = leaves . value . find (
248248 ( leaf ) => leaf [ keyId ] === pId ,
249249 ) ;
@@ -260,7 +260,7 @@ export default (
260260 siblings [ prevIndex ] ,
261261 ] ;
262262 }
263- }
263+ } ;
264264
265265 /* -------------------------------------------------------------------------- */
266266 /* Main */
0 commit comments