Explorar el Código

Docs: Collection constructor now accepts iterable rather than an array.

Marek Lewandowski hace 5 años
padre
commit
627577647c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/ckeditor5-utils/src/collection.js

+ 1 - 1
packages/ckeditor5-utils/src/collection.js

@@ -29,7 +29,7 @@ export default class Collection {
 	/**
 	/**
 	 * Creates a new Collection instance.
 	 * Creates a new Collection instance.
 	 *
 	 *
-	 * You can provide an array of initial items the collection will be created with:
+	 * You can provide an iterable of initial items the collection will be created with:
 	 *
 	 *
 	 *		const collection = new Collection( [ { id: 'John' }, { id: 'Mike' } ] );
 	 *		const collection = new Collection( [ { id: 'John' }, { id: 'Mike' } ] );
 	 *
 	 *