ArraySpy

Track array methods like map, filter, and flatMap. View previous and current array values in the console to debug transformations.

As of June 2026, ArraySpy has 3 users in the Developer Tools category.

Usersup 50.0 percent+50.0%
3
3
Ratingno change0%
— reviews
Reviewsno change0%
Version
0.0.1
Manifest V3

History

2 snapshots

Tracking since Apr 20, 2026.

3.082.51.92Apr 20, 2026Jun 6, 2026
View as table
DateUsersRatingReviewsVersion
Apr 20, 202620.0.1
May 11, 202620.0.1
Now30.0.1

Permissions & access

Permissions
storageactiveTab
Host access
None declared

Screenshots

ArraySpy screenshot 1ArraySpy screenshot 2ArraySpy screenshot 3ArraySpy screenshot 4

About

# ArraySpy: Your Functional Programming Debugging Companion

ArraySpy is a powerful Chrome extension designed to make debugging functional programming operations easier and more intuitive. It's particularly valuable for developers who work with array transformations in JavaScript, helping them understand exactly what's happening at each step of their data transformations.

## Why Functional Programming is Great (But Hard to Debug)

Functional programming offers numerous benefits:

1. **Immutability**: Data transformations create new arrays instead of modifying existing ones, preventing side effects
2. **Composability**: Functions can be easily combined to create complex transformations
3. **Predictability**: Pure functions always return the same output for the same input
4. **Readability**: Chainable operations make code more declarative and easier to understand
5. **Testability**: Pure functions are easier to test in isolation

However, debugging functional code can be challenging because:
- Each transformation creates a new array, making it hard to see the intermediate states
- Complex chains of operations can make it difficult to identify where things go wrong
- Traditional debugging tools don't show you the state of arrays before and after each transformation
- You often need to add multiple `console.log` statements to track the data flow

## How ArraySpy Helps

ArraySpy solves these debugging challenges by:

1. **Real-time Tracking**: Automatically tracks array transformations as they happen
2. **Easy Access**: Provides a global `__arraySpy` object with:
   - `__arraySpy.current`: Shows the current array after the latest transformation
   - `__arraySpy.previous`: Shows the array before the latest transformation
3. **Configurable**: Track only the array methods you care about:
   - Default tracking for `map`, `filter`, and `flatMap`
   - Optional tracking for `reduce`, `forEach`, `some`, `every`, `find`, and `findIndex`
4. **Non-intrusive**: Works without modifying your code or adding console.log statements

## Example Usage

```javascript
const numbers = [1, 2, 3, 4, 5];

// Without ArraySpy, you'd need multiple console.logs to see the transformations
const doubled = numbers.map(x => x * 2);
const evenNumbers = doubled.filter(x => x % 2 === 0);

// With ArraySpy, you can instantly see:
console.log(__arraySpy.previous); // Original array: [1, 2, 3, 4, 5]
console.log(__arraySpy.current);  // After latest transformation: [2, 4, 6, 8, 10]
```

## Why You Should Install It

1. **Save Debugging Time**: No more adding and removing console.log statements
2. **Better Understanding**: See exactly how your data transforms at each step
3. **Clean Code**: Keep your code clean without debugging statements
4. **Flexible Configuration**: Track only the array methods you need
5. **Zero Code Changes**: Works with your existing code without modifications

ArraySpy is particularly valuable for:
- Developers working with complex data transformations
- Teams using functional programming patterns
- Anyone who needs to debug array operations frequently
- Developers learning functional programming concepts

The extension seamlessly integrates into your development workflow, making it easier to understand and debug array transformations while maintaining the clean, functional style of your code.

Technical

Version
0.0.1
Manifest
V3
Size
11.68KiB
Min Chrome
88
Languages
1
Featured
No

Metadata

ID
olheghhkfkkmclecdiciokpoopkbjbdd
Developer ID
ub265ae5b40d538e3db965883b3fb8191
Developer Email
[email protected]
Created
Apr 11, 2025
Last Updated (Store)
Apr 11, 2025
Last Scraped
Jun 6, 2026
Website
Support URL

Similar extensions

Alternatives to ArraySpy, ranked by description similarity.

Data sourced from the Chrome Web Store · last verified Jun 6, 2026.