<!doctype html>
<html lang="en">
	<head>
		<title>JavaScript Patterns</title>
		<meta charset="utf-8">
	</head>
	<body>
		<script>
			/* Title: Mix-ins
			 Description: copy from any number of objects and mix them all into a new object
			 */

			function mix() {
				var arg, prop, child = {};
				for (arg = 0; arg < arguments.length; arg += 1) {
					for (prop in arguments[arg]) {
						if (arguments[arg].hasOwnProperty(prop)) {
							child[prop] = arguments[arg][prop];
						}
					}
				}
				return chi