Skip to content

Commit c7c755a

Browse files
committed
Initial push
1 parent ddf2bd6 commit c7c755a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Image{
3232
this.width = width;
3333
this.height = height;
3434
}
35-
crop(left,upper,right,low){
35+
crop([left,upper,right,low]){
3636
if(left >= right || upper >= low)
3737
throw new Error("Arrange parameter left,upper,right,low accordingly!!");
3838
if(left < 0 || right>this.width || upper<0 || low>this.height)

0 commit comments

Comments
 (0)