make slice() function's doc more accurate
This commit is contained in:
		
							parent
							
								
									43815d8292
								
							
						
					
					
						commit
						387be70ae9
					
				@ -162,9 +162,9 @@ export class YArray extends AbstractType {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * Preppends content to this YArray.
 | 
			
		||||
   * Prepends content to this YArray.
 | 
			
		||||
   *
 | 
			
		||||
   * @param {Array<T>} content Array of content to preppend.
 | 
			
		||||
   * @param {Array<T>} content Array of content to prepend.
 | 
			
		||||
   */
 | 
			
		||||
  unshift (content) {
 | 
			
		||||
    this.insert(0, content)
 | 
			
		||||
@ -206,7 +206,7 @@ export class YArray extends AbstractType {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * Transforms this YArray to a JavaScript Array.
 | 
			
		||||
   * Returns a portion of this YArray into a JavaScript Array selected from start to end (end not included).
 | 
			
		||||
   *
 | 
			
		||||
   * @param {number} [start]
 | 
			
		||||
   * @param {number} [end]
 | 
			
		||||
 | 
			
		||||
@ -380,9 +380,9 @@ export class YXmlFragment extends AbstractType {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * Preppends content to this YArray.
 | 
			
		||||
   * Prepends content to this YArray.
 | 
			
		||||
   *
 | 
			
		||||
   * @param {Array<YXmlElement|YXmlText>} content Array of content to preppend.
 | 
			
		||||
   * @param {Array<YXmlElement|YXmlText>} content Array of content to prepend.
 | 
			
		||||
   */
 | 
			
		||||
  unshift (content) {
 | 
			
		||||
    this.insert(0, content)
 | 
			
		||||
@ -399,7 +399,7 @@ export class YXmlFragment extends AbstractType {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * Transforms this YArray to a JavaScript Array.
 | 
			
		||||
   * Returns a portion of this YXmlFragment into a JavaScript Array selected from start to end (end not included).
 | 
			
		||||
   *
 | 
			
		||||
   * @param {number} [start]
 | 
			
		||||
   * @param {number} [end]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user