@@ -83,13 +83,13 @@ export default (
8383 /* Functions */
8484 /* -------------------------------------------------------------------------- */
8585
86- function getLeaves (
86+ const getLeaves = (
8787 siblings : { configurable ?: boolean ; value : Record < string , unknown > [ ] } ,
8888 parent : {
8989 configurable ?: boolean ;
9090 value : null | Record < string , unknown > ;
9191 } = { value : null } ,
92- ) : Record < string , unknown > [ ] {
92+ ) : Record < string , unknown > [ ] => {
9393 return siblings . value . flatMap ( ( value ) => {
9494 Object . defineProperties ( value , {
9595 ...properties ,
@@ -107,7 +107,7 @@ export default (
107107 ) ,
108108 ] ;
109109 } ) ;
110- }
110+ } ;
111111
112112 /* -------------------------------------------------------------------------- */
113113 /* Reactives */
@@ -121,9 +121,9 @@ export default (
121121 /* Functions */
122122 /* -------------------------------------------------------------------------- */
123123
124- function startLeaves ( ) : Record < string , unknown > [ ] {
124+ const startLeaves = ( ) : Record < string , unknown > [ ] => {
125125 return getLeaves ( { value } ) ;
126- }
126+ } ;
127127
128128 /* -------------------------------------------------------------------------- */
129129 /* Computations */
@@ -135,7 +135,7 @@ export default (
135135 /* Functions */
136136 /* -------------------------------------------------------------------------- */
137137
138- function add ( pId : string ) : null | string {
138+ const add = ( pId : string ) : null | string => {
139139 const the : null | Record < string , unknown > =
140140 leaves . value . find ( ( leaf ) => leaf [ keyId ] === pId ) ?? null ;
141141 if ( the ) {
@@ -159,11 +159,11 @@ export default (
159159 return id ;
160160 }
161161 return null ;
162- }
162+ } ;
163163
164164 /* -------------------------------------------------------------------------- */
165165
166- function down ( pId : string ) : void {
166+ const down = ( pId : string ) : void => {
167167 const the : null | Record < string , unknown > =
168168 leaves . value . find ( ( leaf ) => leaf [ keyId ] === pId ) ?? null ;
169169 if ( the ) {
@@ -179,11 +179,11 @@ export default (
179179 siblings [ index ] ,
180180 ] ;
181181 }
182- }
182+ } ;
183183
184184 /* -------------------------------------------------------------------------- */
185185
186- function left ( pId : string ) : null | string {
186+ const left = ( pId : string ) : null | string => {
187187 const the : null | Record < string , unknown > =
188188 leaves . value . find ( ( leaf ) => leaf [ keyId ] === pId ) ?? null ;
189189 if ( the ) {
@@ -203,11 +203,11 @@ export default (
203203 }
204204 }
205205 return null ;
206- }
206+ } ;
207207
208208 /* -------------------------------------------------------------------------- */
209209
210- function remove ( pId : string ) : null | string {
210+ const remove = ( pId : string ) : null | string => {
211211 const the : null | Record < string , unknown > =
212212 leaves . value . find ( ( leaf ) => leaf [ keyId ] === pId ) ?? null ;
213213 if ( the ) {
@@ -235,11 +235,11 @@ export default (
235235 }
236236 }
237237 return null ;
238- }
238+ } ;
239239
240240 /* -------------------------------------------------------------------------- */
241241
242- function right ( pId : string ) : null | string {
242+ const right = ( pId : string ) : null | string => {
243243 const the : null | Record < string , unknown > =
244244 leaves . value . find ( ( leaf ) => leaf [ keyId ] === pId ) ?? null ;
245245 if ( the ) {
@@ -258,11 +258,11 @@ export default (
258258 }
259259 }
260260 return null ;
261- }
261+ } ;
262262
263263 /* -------------------------------------------------------------------------- */
264264
265- function up ( pId : string ) : void {
265+ const up = ( pId : string ) : void => {
266266 const the : null | Record < string , unknown > =
267267 leaves . value . find ( ( leaf ) => leaf [ keyId ] === pId ) ?? null ;
268268 if ( the ) {
@@ -278,7 +278,7 @@ export default (
278278 siblings [ prevIndex ] ,
279279 ] ;
280280 }
281- }
281+ } ;
282282
283283 /* -------------------------------------------------------------------------- */
284284 /* Main */
0 commit comments