Avatar for the radashi-org user
radashi-org
radashi
BlogDocsChangelog

feat: add `mapify` function

#58
Comparing
cimbraien:feat/array/mapify
(
b5c7777
) with
main
(
e2c2ce3
)
CodSpeed Performance Gauge
-14%
Improvement
2
Regression
2
Untouched
187
New
2

Benchmarks

193 total
with empty input list
benchmarks/array/select.bench.ts::select
CodSpeed Performance Gauge
-14%
18.2 µs21 µs
with integer
benchmarks/typed/isFloat.bench.ts::isFloat
CodSpeed Performance Gauge
-13%
19.7 µs22.5 µs
with primitive
benchmarks/typed/isPrimitive.bench.ts::isPrimitive
CodSpeed Performance Gauge
+21%
17.8 µs14.8 µs
with mixed arrays
benchmarks/array/intersects.bench.ts::intersects
CodSpeed Performance Gauge
+15%
25.5 µs22.2 µs
with full list and identity value function
benchmarks/array/mapify.bench.ts::mapify
CodSpeed Performance Gauge
N/A
N/A56.9 µs
with empty list
benchmarks/array/mapify.bench.ts::mapify
CodSpeed Performance Gauge
N/A
N/A18.4 µs
with full list and identity value function
benchmarks/array/objectify.bench.ts::objectify
CodSpeed Performance Gauge
+6%
60.2 µs57 µs
with item that does exist and custom matcher
benchmarks/array/toggle.bench.ts::toggle
CodSpeed Performance Gauge
+2%
46.5 µs45.5 µs
with special characters
benchmarks/random/uid.bench.ts::uid
CodSpeed Performance Gauge
+2%
40.8 µs40 µs
with string fill
benchmarks/array/list.bench.ts::list
CodSpeed Performance Gauge
+2%
43.9 µs43.1 µs
with numbers and special characters (no split on number)
benchmarks/string/snake.bench.ts::snake
CodSpeed Performance Gauge
+1%
59.3 µs58.5 µs
with non-empty input list
benchmarks/array/select.bench.ts::select
CodSpeed Performance Gauge
+1%
52.9 µs52.2 µs
with index
benchmarks/array/select.bench.ts::select
CodSpeed Performance Gauge
+1%
41 µs40.5 µs
with null
benchmarks/typed/isEmpty.bench.ts::isEmpty
CodSpeed Performance Gauge
+1%
14.7 µs14.5 µs
with anonymous function
benchmarks/typed/isFunction.bench.ts::isFunction
CodSpeed Performance Gauge
+1%
15.2 µs15 µs
with non-empty array
benchmarks/array/unique.bench.ts::unique
CodSpeed Performance Gauge
+1%
23.2 µs23 µs
with undefined
benchmarks/number/toInt.bench.ts::toInt
CodSpeed Performance Gauge
+1%
14.7 µs14.5 µs
with valid input
benchmarks/object/crush.bench.ts::crush
CodSpeed Performance Gauge
+1%
192.6 µs190.9 µs
with item that does not exist
benchmarks/array/toggle.bench.ts::toggle
CodSpeed Performance Gauge
+1%
27.5 µs27.2 µs
with valid input
benchmarks/object/mapValues.bench.ts::mapValues
CodSpeed Performance Gauge
+1%
34.6 µs34.3 µs
with non-number value
benchmarks/typed/isFloat.bench.ts::isFloat
CodSpeed Performance Gauge
+1%
19.7 µs19.6 µs
with array index path
benchmarks/object/set.bench.ts::set
CodSpeed Performance Gauge
+1%
101.1 µs100.2 µs
with null
benchmarks/typed/isPrimitive.bench.ts::isPrimitive
CodSpeed Performance Gauge
+1%
14.7 µs14.6 µs
with null
benchmarks/typed/isPlainObject.bench.ts::isPlainObject
CodSpeed Performance Gauge
+1%
15 µs14.9 µs
with non-Date value
benchmarks/typed/isDate.bench.ts::isDate
CodSpeed Performance Gauge
+1%
19.5 µs19.3 µs

Commits

Click on a commit to change the comparison range
Base
main
e2c2ce3
-52.75%
chore: format & fix linter related problems
abbcbc3
2 years ago
+39%
Merge branch 'main' into feat/array/mapify
b5c7777
2 years ago
by aleclarson
© 2026 CodSpeed Technology
Home Terms Privacy Docs