/** * Copyright (c) 2017-present A. Matías Quezada */ /** * Calculates the space closest to the middle of the name and splits the name there. * Returns a object with { first, last }. * * @param {String} name The name to be splitted. * @returns {Object} An object with { first: string, last: string }. */ export default function splitName(name: string): { first: string; last: string; };