Function
splitEmbeddedAndExternalApps
(
apps: WorkspaceAppWithAgent[],
)
Source from the content-addressed store, hash-verified
| 237 | }; |
| 238 | |
| 239 | function splitEmbeddedAndExternalApps( |
| 240 | apps: WorkspaceAppWithAgent[], |
| 241 | ): [WorkspaceAppWithAgent[], WorkspaceAppWithAgent[]] { |
| 242 | const embeddedApps = []; |
| 243 | const externalApps = []; |
| 244 | |
| 245 | for (const app of apps) { |
| 246 | if (app.external) { |
| 247 | externalApps.push(app); |
| 248 | } else { |
| 249 | embeddedApps.push(app); |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | return [embeddedApps, externalApps]; |
| 254 | } |
Tested by
no test coverage detected