# extendify/3.2.1/src/AutoLaunch/functions/getAbTest.js

Extendify, version 3.2.1. 9 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.1/code/src/AutoLaunch/functions/getAbTest.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.1/raw/src/AutoLaunch/functions/getAbTest.js
- Modified: 2026-06-17T22:11:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.2.1/code/src/AutoLaunch/functions/getAbTest.js#L10-L20`.

```javascript
const normalizeAssignment = (assignment) => ({
	variant: assignment?.variant ?? null,
	percentage:
		typeof assignment?.percentage === 'number' ? assignment.percentage : null,
});

export const getAbTest = (key) =>
	normalizeAssignment(window.extLaunchData?.activeTests?.[key]);

```
