Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 299 Bytes

File metadata and controls

12 lines (8 loc) · 299 Bytes

title-mapper

Tiny JavaScript utility that maps an array of objects with a title property into an array of strings.

Usage

import { mapTitles } from './src/mapTitles.js';

const items = [{ title: 'Hello' }, { title: 'World' }];
console.log(mapTitles(items)); // ["Hello", "World"]