lib/actions/select-item.js
function selectItem(editor, model, getItemRange) {
	editor.transact(() => {
		const selections = editor.getSelectedBufferRanges()
		.map(anchor => getItemRange(model, anchor) || anchor);

		editor.setSelectedBufferRanges(selections);
	});
}
function selectItem(editor, model, getItemRange) {
	editor.transact(() => {
		const selections = editor.getSelectedBufferRanges()
		.map(anchor => getItemRange(model, anchor) || anchor);

		editor.setSelectedBufferRanges(selections);
	});
}
function selectItem ( editor , model , getItemRange ) { editor . transact ( ( ) => { const selections = editor . getSelectedBufferRanges ( ) . map ( anchor => getItemRange ( model , anchor ) || anchor ) ; editor . setSelectedBufferRanges ( selections ) ; } ) ; }
Selects each item, returned by `getItem` method, in given editor
@param  {TextEditor}  editor
@param  {SyntaxModel} model
@param  {Function}    getItemRange
Selects each item returned by getItem method in given editor