默认头像帮助器 用于创建默认头像的助手。 用法 import { getDefaultAvatarDetails } from 'default-avatar-helper' const palette = [ 'red' , 'green' , 'blue' ] const name = 'random name' // Providing both arguments at once will return a result object straight away: const { colour , initials } = getDefaultAvatarDetails ( palette , name ) // Alternatively, since `getDefaultAvatarDetails` is curried, you can do // something l