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 valid input
benchmarks/object/construct.bench.ts::construct
CodSpeed Performance Gauge
-9%
153.9 µs169 µs
with valid input
benchmarks/string/template.bench.ts::template
CodSpeed Performance Gauge
-7%
42.9 µs46.1 µs
with float
benchmarks/typed/isNumber.bench.ts::isNumber
CodSpeed Performance Gauge
-6%
18 µs19.2 µs
with full list and identity value function
benchmarks/array/objectify.bench.ts::objectify
CodSpeed Performance Gauge
+6%
60.2 µs57 µs
with complex objects
benchmarks/typed/isEqual.bench.ts::isEqual
CodSpeed Performance Gauge
-6%
200.8 µs212.8 µs
with object literal
benchmarks/typed/isPlainObject.bench.ts::isPlainObject
CodSpeed Performance Gauge
-5%
21.4 µs22.4 µs
with class instance
benchmarks/typed/isObject.bench.ts::isObject
CodSpeed Performance Gauge
-3%
34.6 µs35.7 µs
with undefined nested path and default value
benchmarks/object/get.bench.ts::get
CodSpeed Performance Gauge
-3%
33.9 µs34.9 µs
with custom identity function
benchmarks/array/intersects.bench.ts::intersects
CodSpeed Performance Gauge
-2%
38.9 µs39.8 µ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 identity function
benchmarks/array/diff.bench.ts::diff
CodSpeed Performance Gauge
-1%
75.6 µs76.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

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