src/loadAnimation.js
function loadFromPath(path, container) {
  if (path && typeof path === 'string' && path.length > 0) {
    return load(path, container)
  }
  return Promise.resolve([])
}
function loadFromPath(path, container) {
  if (path && typeof path === 'string' && path.length > 0) {
    return load(path, container)
  }
  return Promise.resolve([])
}
function loadFromPath ( path , container ) { if ( path && typeof path === 'string' && path . length > 0 ) { return load ( path , container ) } return Promise . resolve ( [ ] ) }
Load from path

@param {string}  path
@param {Element} container
@return {Promise<Array|object>}
Load from path