UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

16 lines (15 loc) 372 B
"use strict"; import { BaseMethod } from "./_Base"; export class ArgcExpression extends BaseMethod { static requiredArguments() { return [["string", "arguments list"]]; } async processArguments(args) { if (args.length == 1) { const argumentsList = args[0]; const val = argumentsList.split(" ").length; return val; } return 0; } }