static findByName( objectOrClipArray, name ) {

		let clipArray = objectOrClipArray;

		if ( ! Array.isArray( objectOrClipArray ) ) {

			const o = objectOrClipArray;
			clipArray = o.geometry && o.geometry.animations || o.animations;

		}

		for ( let i = 0; i < clipArray.length; i ++ ) {

			if ( clipArray[ i ].name === name ) {

				return clipArray[ i ];

			}

		}

		return null;

	}
Searches for an animation clip by name, taking as its first parameter
either an array of clips, or a mesh or geometry that contains an
array named "animations" property.

@static
@param {(Array<AnimationClip>|Object3D)} objectOrClipArray - The array or object to search through.
@param {string} name - The name to search for.
@return {?AnimationClip} The found animation clip. Returns `null` if no clip has been found.